protocol: add flags to protocol marshal

Allows us to to select marshallers for implementation and binding.
This commit is contained in:
Wim Taymans 2019-11-03 10:21:57 +01:00
parent d1e331e268
commit 8ddf579cc0
11 changed files with 150 additions and 92 deletions

View file

@ -527,12 +527,13 @@ pw_protocol_native_device_event_demarshal[SPA_DEVICE_EVENT_NUM] =
static const struct pw_protocol_marshal pw_protocol_native_client_device_marshal = {
SPA_TYPE_INTERFACE_Device,
SPA_VERSION_DEVICE,
PW_PROTOCOL_MARSHAL_FLAG_IMPL,
SPA_DEVICE_EVENT_NUM,
SPA_DEVICE_METHOD_NUM,
&pw_protocol_native_device_event_marshal,
pw_protocol_native_device_event_demarshal,
&pw_protocol_native_device_method_marshal,
pw_protocol_native_device_method_demarshal,
.client_marshal = &pw_protocol_native_device_event_marshal,
.server_demarshal = pw_protocol_native_device_event_demarshal,
.server_marshal = &pw_protocol_native_device_method_marshal,
.client_demarshal = pw_protocol_native_device_method_demarshal,
};
struct pw_protocol *pw_protocol_native_ext_client_device_init(struct pw_core *core)