Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
82fe7831
Commit
82fe7831
authored
5 years ago
by
George Kiagiadakis
Browse files
Options
Downloads
Patches
Plain Diff
lib: implement WpSession (proxy + exported for pw_session)
parent
ce3883c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/wp/meson.build
+2
-0
2 additions, 0 deletions
lib/wp/meson.build
lib/wp/session.c
+680
-0
680 additions, 0 deletions
lib/wp/session.c
lib/wp/session.h
+77
-0
77 additions, 0 deletions
lib/wp/session.h
lib/wp/wp.h
+1
-0
1 addition, 0 deletions
lib/wp/wp.h
with
760 additions
and
0 deletions
lib/wp/meson.build
+
2
−
0
View file @
82fe7831
...
...
@@ -14,6 +14,7 @@ wp_lib_sources = [
'proxy-link.c'
,
'proxy-node.c'
,
'proxy-port.c'
,
'session.c'
,
'spa-props.c'
,
]
...
...
@@ -33,6 +34,7 @@ wp_lib_headers = [
'proxy-node.h'
,
'proxy-port.h'
,
'proxy-link.h'
,
'session.h'
,
'wp.h'
,
]
...
...
This diff is collapsed.
Click to expand it.
lib/wp/session.c
0 → 100644
+
680
−
0
View file @
82fe7831
This diff is collapsed.
Click to expand it.
lib/wp/session.h
0 → 100644
+
77
−
0
View file @
82fe7831
/* WirePlumber
*
* Copyright © 2019 Collabora Ltd.
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
*
* SPDX-License-Identifier: MIT
*/
#ifndef __WIREPLUMBER_SESSION_H__
#define __WIREPLUMBER_SESSION_H__
#include
"exported.h"
#include
"proxy.h"
G_BEGIN_DECLS
#define WP_TYPE_SESSION (wp_session_get_type ())
G_DECLARE_INTERFACE
(
WpSession
,
wp_session
,
WP
,
SESSION
,
GObject
)
typedef
enum
{
WP_DEFAULT_ENDPOINT_TYPE_AUDIO_SOURCE
=
0x1000000
/* SPA_PROP_START_CUSTOM */
,
WP_DEFAULT_ENDPOINT_TYPE_AUDIO_SINK
,
WP_DEFAULT_ENDPOINT_TYPE_VIDEO_SOURCE
,
}
WpDefaultEndpointType
;
struct
_WpSessionInterface
{
GTypeInterface
parent
;
WpProperties
*
(
*
get_properties
)
(
WpSession
*
self
);
guint32
(
*
get_default_endpoint
)
(
WpSession
*
self
,
WpDefaultEndpointType
type
);
void
(
*
set_default_endpoint
)
(
WpSession
*
self
,
WpDefaultEndpointType
type
,
guint32
id
);
};
WpProperties
*
wp_session_get_properties
(
WpSession
*
self
);
guint32
wp_session_get_default_endpoint
(
WpSession
*
self
,
WpDefaultEndpointType
type
);
void
wp_session_set_default_endpoint
(
WpSession
*
self
,
WpDefaultEndpointType
type
,
guint32
id
);
/* proxy */
typedef
enum
{
/*< flags >*/
WP_PROXY_SESSION_FEATURE_DEFAULT_ENDPOINT
=
WP_PROXY_FEATURE_LAST
,
}
WpProxySessionFeatures
;
#define WP_TYPE_PROXY_SESSION (wp_proxy_session_get_type ())
G_DECLARE_FINAL_TYPE
(
WpProxySession
,
wp_proxy_session
,
WP
,
PROXY_SESSION
,
WpProxy
)
const
struct
pw_session_info
*
wp_proxy_session_get_info
(
WpProxySession
*
self
);
/* exported */
#define WP_TYPE_EXPORTED_SESSION (wp_exported_session_get_type ())
G_DECLARE_DERIVABLE_TYPE
(
WpExportedSession
,
wp_exported_session
,
WP
,
EXPORTED_SESSION
,
WpExported
)
struct
_WpExportedSessionClass
{
WpExportedClass
parent_class
;
};
WpExportedSession
*
wp_exported_session_new
(
WpCore
*
core
);
guint32
wp_exported_session_get_global_id
(
WpExportedSession
*
self
);
void
wp_exported_session_set_property
(
WpExportedSession
*
self
,
const
gchar
*
key
,
const
gchar
*
value
);
void
wp_exported_session_update_properties
(
WpExportedSession
*
self
,
WpProperties
*
updates
);
G_END_DECLS
#endif
This diff is collapsed.
Click to expand it.
lib/wp/wp.h
+
1
−
0
View file @
82fe7831
...
...
@@ -21,4 +21,5 @@
#include
"proxy-link.h"
#include
"proxy-node.h"
#include
"proxy-port.h"
#include
"session.h"
#include
"wpenums.h"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment