Wim Taymans
7a69c07afc
properties: add pw_properties_add(_keys)
...
Add method to only add properties when they don't already exist.
2019-12-12 16:28:27 +01:00
Wim Taymans
3e1eeb1c03
filter: handle context allocation failure
2019-12-12 16:27:33 +01:00
Wim Taymans
2a142edadb
pw_impl_port_new -> pw_context_create_port
2019-12-11 18:07:03 +01:00
Wim Taymans
930b595724
pw_impl_node_new -> pw_context_create_node
2019-12-11 17:59:00 +01:00
Wim Taymans
6043a3f8c0
pw_impl_device_new -> pw_context_create_device
2019-12-11 17:56:24 +01:00
Wim Taymans
c3f6524120
pw_impl_link_new -> pw_context_create_link
2019-12-11 17:54:27 +01:00
Wim Taymans
e96bdc6bd9
pw_impl_client_new -> pw_context_create_client
2019-12-11 17:52:15 +01:00
Wim Taymans
310077438b
pw_impl_factory_new -> pw_context_create_factory
2019-12-11 17:50:27 +01:00
Wim Taymans
bc0dcd2e34
pw_impl_module_load -> pw_context_load_module
2019-12-11 17:40:32 +01:00
Wim Taymans
3084809bed
context: move pw_context_find_factory to impl
2019-12-11 17:34:05 +01:00
Wim Taymans
73eea24443
impl-client: improve constructor
...
Pass the protocol in constructor
Keep the link in the server protocol list private to the prototol.
2019-12-11 17:19:12 +01:00
Wim Taymans
d99b1918ed
small cleanups
2019-12-11 16:51:38 +01:00
Wim Taymans
3805d5dfa2
pw_endpoint_stream_proxy -> pw_endpoint_stream
2019-12-11 16:48:00 +01:00
Wim Taymans
9b53c65c72
pw_endpoint_proxy -> pw_endpoint
2019-12-11 16:43:53 +01:00
Wim Taymans
85103d128e
pw_session_proxy -> pw_session
2019-12-11 16:39:24 +01:00
Wim Taymans
3c737cf39c
pw_endpoint_link_proxy -> pw_endpoint_link
2019-12-11 16:36:12 +01:00
Wim Taymans
94ed9c8e38
pw_client_endpoint_proxy -> pw_client_endpoint
...
pw_client_session_proxy -> pw_client_session
2019-12-11 16:31:58 +01:00
Wim Taymans
743450a19f
pw_client_node_proxy -> pw_client_node
2019-12-11 16:13:46 +01:00
Wim Taymans
c23006fcdb
pw_port_proxy -> pw_port
2019-12-11 15:59:26 +01:00
Wim Taymans
beb3c69dfe
pw_node_proxy -> pw_node
2019-12-11 15:26:11 +01:00
Wim Taymans
199fa47216
pw_module_proxy -> pw_module
2019-12-11 15:16:30 +01:00
Wim Taymans
e633e205c2
pw_link_proxy -> pw_link
2019-12-11 15:11:56 +01:00
Wim Taymans
114982f3f5
pw_factory_proxy -> pw_factory
2019-12-11 15:06:00 +01:00
Wim Taymans
f1eb5f6046
pw_device_proxy -> pw_device
2019-12-11 15:00:41 +01:00
Wim Taymans
a8f1d756c3
pw_client_proxy -> pw_client
2019-12-11 14:53:39 +01:00
Wim Taymans
aa378417c2
interfaces: move proxy API into their own header files
2019-12-11 14:44:59 +01:00
Wim Taymans
b75f2aaabd
fix headers
2019-12-11 14:08:30 +01:00
Wim Taymans
898e870997
pw_node -> pw_impl_node
2019-12-11 12:41:45 +01:00
Wim Taymans
f62d1cb357
pw_port -> pw_impl_port
2019-12-11 12:24:03 +01:00
Wim Taymans
b88741dbb9
pw_link -> pw_impl_link
2019-12-11 12:06:08 +01:00
Wim Taymans
443a49947e
pw_module -> pw_impl_module
2019-12-11 11:57:56 +01:00
Wim Taymans
815d4a8d20
pw_factory -> pw_impl_factory
2019-12-11 11:45:27 +01:00
Wim Taymans
73900eea1b
pw_device -> pw_impl_device
2019-12-11 11:34:02 +01:00
Wim Taymans
95688939bf
pw_client -> pw_impl_client
2019-12-11 11:21:43 +01:00
Wim Taymans
d70a47b7fe
move proxy implementations in their own file
...
Rearrange headers
2019-12-11 10:58:51 +01:00
Wim Taymans
49d736bbb7
pw_registry_proxy -> pw_registry
2019-12-11 09:44:48 +01:00
Wim Taymans
ecc6b27cd7
rename core_proxy -> core
...
Rename core_proxy to core and move the introspect and interface
contents to core.h
In an effort to promote the proxy API.
2019-12-11 07:46:59 +01:00
Wim Taymans
8ea78c2e3f
pw_core -> pw_context
...
The proxy API is the one that we would like to expose for applications
and the other API is used internally when implementing modules or
factories.
The current pw_core object is really a context for all objects so
name it that way. It also makes it possible to rename pw_core_proxy
to pw_proxy later.
2019-12-10 18:19:56 +01:00
Wim Taymans
42103a8218
export-spa: implement with core-proxy
2019-12-10 17:09:52 +01:00
Wim Taymans
e2ba3dc6e4
local-v4l2: implement with core-proxy
...
Implement the local-v4l2 example with a core-proxy connected to
a local instance. We can export and instantiate objects and
link nodes and ports without having to touch the implementations.
2019-12-10 16:37:22 +01:00
Wim Taymans
c0f5e8d967
protocol-native: always create a local server
...
Always create a local server without any socket. We can use this
to create clients that connect locally (in-process), such as
the cli or any app that wants to create a local pipeline.
2019-12-10 16:23:43 +01:00
Wim Taymans
8917e1e149
cli: set error when connection failed
2019-12-10 16:03:19 +01:00
Wim Taymans
49a4440692
audioadapter: pass slave properties directly
2019-12-10 12:48:18 +01:00
Wim Taymans
84c91c44e3
port: emit info changed on new port
2019-12-10 12:33:29 +01:00
Wim Taymans
468cbb8892
core-proxy: improve cleanup
...
Don't disconnect and destroy on errors, let the app do that.
Don't try to use a destroyed core-proxy.
2019-12-10 12:33:10 +01:00
Wim Taymans
2c492ff71f
client-node: don't check format
...
Don't check if we got a Format param to be able to set buffers,
let the implementation decide on that.
2019-12-10 12:21:02 +01:00
Wim Taymans
5a2ad084e8
proxy: add pw_proxy_set_bound_id
...
Add method to set bound_id and emit the signal.
Rename resource_bound_id -> resource_set_bound_id and add
resource_get_bound_id.
2019-12-10 12:19:11 +01:00
Wim Taymans
030d2a075b
stream: improve params
2019-12-09 15:22:45 +01:00
Wim Taymans
b5811280ef
core-proxy: improve cleanup
...
Also disconnect filters.
Ignore multiple destroy calls. This can happen when the protocol
destroys the core-proxy and some implementation cleanup code
does the same. The cleanup code can't reliably know about this
cleanup.
2019-12-09 12:30:49 +01:00
Wim Taymans
e27331a25e
filter: use spa_node directy
...
There is not need to make a pw_node first and export that, we ca
directly export the spa_node.
Fix property updates on node and port.
Fix some leaks
2019-12-09 12:28:55 +01:00