protocol: make connect async

Make the protocol client connect call async with a callback when it
completes.
Move the connect methods into separate files, add an empty connect
method that will use the screencast portal to get a pipewire fd.
Use the remote intention to get the connect method.
Add some better error reporting.
This commit is contained in:
Wim Taymans 2018-01-30 15:11:39 +01:00
parent ad1e5fdc10
commit d14c7abe11
7 changed files with 203 additions and 66 deletions

View file

@ -69,6 +69,8 @@ pipewire_module_link_factory = shared_library('pipewire-module-link-factory',
pipewire_module_protocol_native = shared_library('pipewire-module-protocol-native',
[ 'module-protocol-native.c',
'module-protocol-native/local-socket.c',
'module-protocol-native/portal-screencast.c',
'module-protocol-native/protocol-native.c',
'module-protocol-native/connection.c' ],
c_args : pipewire_module_c_args,