mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
Beginnings of dbus based control
This commit is contained in:
parent
becae3e7fa
commit
ee202e13e9
19 changed files with 2086 additions and 28 deletions
|
|
@ -37,8 +37,6 @@ typedef struct _SpaIDMap SpaIDMap;
|
|||
* Maps between uri and its id
|
||||
*/
|
||||
struct _SpaIDMap {
|
||||
/* pointer to the handle owning this interface */
|
||||
SpaHandle *handle;
|
||||
/* the total size of this structure. This can be used to expand this
|
||||
* structure in the future */
|
||||
size_t size;
|
||||
|
|
|
|||
|
|
@ -50,8 +50,6 @@ typedef enum
|
|||
* The Log interface
|
||||
*/
|
||||
struct _SpaLog {
|
||||
/* pointer to the handle owning this interface */
|
||||
SpaHandle *handle;
|
||||
/* the total size of this log. This can be used to expand this
|
||||
* structure in the future */
|
||||
size_t size;
|
||||
|
|
|
|||
|
|
@ -92,8 +92,6 @@ typedef struct {
|
|||
* Register poll events
|
||||
*/
|
||||
struct _SpaPoll {
|
||||
/* pointer to the handle owning this interface */
|
||||
SpaHandle *handle;
|
||||
/* the total size of this structure. This can be used to expand this
|
||||
* structure in the future */
|
||||
size_t size;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ id_map_get_uri (SpaIDMap *map, uint32_t id)
|
|||
}
|
||||
|
||||
static const SpaIDMap default_map = {
|
||||
NULL,
|
||||
sizeof (SpaIDMap),
|
||||
NULL,
|
||||
id_map_get_id,
|
||||
|
|
|
|||
1439
spa/plugins/remote/dbus-proxy.c
Normal file
1439
spa/plugins/remote/dbus-proxy.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,6 @@
|
|||
remote_sources = ['proxy.c', 'plugin.c']
|
||||
remote_sources = ['proxy.c',
|
||||
'dbus-proxy.c',
|
||||
'plugin.c']
|
||||
|
||||
remotelib = shared_library('spa-remote',
|
||||
remote_sources,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <spa/node.h>
|
||||
|
||||
extern const SpaHandleFactory spa_proxy_factory;
|
||||
extern const SpaHandleFactory spa_dbus_proxy_factory;
|
||||
|
||||
SpaResult
|
||||
spa_enum_handle_factory (const SpaHandleFactory **factory,
|
||||
|
|
@ -37,6 +38,9 @@ spa_enum_handle_factory (const SpaHandleFactory **factory,
|
|||
case 0:
|
||||
*factory = &spa_proxy_factory;
|
||||
break;
|
||||
case 1:
|
||||
*factory = &spa_dbus_proxy_factory;
|
||||
break;
|
||||
default:
|
||||
return SPA_RESULT_ENUM_END;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -360,7 +360,6 @@ main (int argc, char *argv[])
|
|||
SpaResult res;
|
||||
|
||||
data.map = spa_id_map_get_default();
|
||||
data.data_loop.handle = NULL;
|
||||
data.data_loop.size = sizeof (SpaPoll);
|
||||
data.data_loop.info = NULL;
|
||||
data.data_loop.add_item = do_add_item;
|
||||
|
|
|
|||
|
|
@ -455,7 +455,6 @@ main (int argc, char *argv[])
|
|||
|
||||
data.map = spa_id_map_get_default ();
|
||||
|
||||
data.data_loop.handle = NULL;
|
||||
data.data_loop.size = sizeof (SpaPoll);
|
||||
data.data_loop.info = NULL;
|
||||
data.data_loop.add_item = do_add_item;
|
||||
|
|
|
|||
|
|
@ -200,7 +200,6 @@ main (int argc, char *argv[])
|
|||
|
||||
data.map = spa_id_map_get_default ();
|
||||
data.log = NULL;
|
||||
data.main_loop.handle = NULL;
|
||||
data.main_loop.size = sizeof (SpaPoll);
|
||||
data.main_loop.info = NULL;
|
||||
data.main_loop.add_item = do_add_item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue