pw_module_proxy -> pw_module

This commit is contained in:
Wim Taymans 2019-12-11 15:16:30 +01:00
parent e633e205c2
commit 199fa47216
10 changed files with 58 additions and 58 deletions

View file

@ -730,7 +730,7 @@ static int registry_demarshal_destroy(void *object, const struct pw_protocol_nat
static int module_method_marshal_add_listener(void *object,
struct spa_hook *listener,
const struct pw_module_proxy_events *events,
const struct pw_module_events *events,
void *data)
{
struct pw_proxy *proxy = object;
@ -744,7 +744,7 @@ static void module_marshal_info(void *object, const struct pw_module_info *info)
struct spa_pod_builder *b;
struct spa_pod_frame f;
b = pw_protocol_native_begin_resource(resource, PW_MODULE_PROXY_EVENT_INFO, NULL);
b = pw_protocol_native_begin_resource(resource, PW_MODULE_EVENT_INFO, NULL);
spa_pod_builder_push_struct(b, &f);
spa_pod_builder_add(b,
@ -788,7 +788,7 @@ static int module_demarshal_info(void *object, const struct pw_protocol_native_m
if (parse_dict(&prs, &props) < 0)
return -EINVAL;
return pw_proxy_notify(proxy, struct pw_module_proxy_events, info, 0, &info);
return pw_proxy_notify(proxy, struct pw_module_events, info, 0, &info);
}
static int device_method_marshal_add_listener(void *object,
@ -1993,35 +1993,35 @@ const struct pw_protocol_marshal pw_protocol_native_registry_marshal = {
.client_demarshal = pw_protocol_native_registry_event_demarshal,
};
static const struct pw_module_proxy_events pw_protocol_native_module_event_marshal = {
PW_VERSION_MODULE_PROXY_EVENTS,
static const struct pw_module_events pw_protocol_native_module_event_marshal = {
PW_VERSION_MODULE_EVENTS,
.info = &module_marshal_info,
};
static const struct pw_protocol_native_demarshal
pw_protocol_native_module_event_demarshal[PW_MODULE_PROXY_EVENT_NUM] =
pw_protocol_native_module_event_demarshal[PW_MODULE_EVENT_NUM] =
{
[PW_MODULE_PROXY_EVENT_INFO] = { &module_demarshal_info, 0, },
[PW_MODULE_EVENT_INFO] = { &module_demarshal_info, 0, },
};
static const struct pw_module_proxy_methods pw_protocol_native_module_method_marshal = {
PW_VERSION_MODULE_PROXY_METHODS,
static const struct pw_module_methods pw_protocol_native_module_method_marshal = {
PW_VERSION_MODULE_METHODS,
.add_listener = &module_method_marshal_add_listener,
};
static const struct pw_protocol_native_demarshal
pw_protocol_native_module_method_demarshal[PW_MODULE_PROXY_METHOD_NUM] =
pw_protocol_native_module_method_demarshal[PW_MODULE_METHOD_NUM] =
{
[PW_MODULE_PROXY_METHOD_ADD_LISTENER] = { NULL, 0, },
[PW_MODULE_METHOD_ADD_LISTENER] = { NULL, 0, },
};
const struct pw_protocol_marshal pw_protocol_native_module_marshal = {
PW_TYPE_INTERFACE_Module,
PW_VERSION_MODULE_PROXY,
PW_VERSION_MODULE,
0,
PW_MODULE_PROXY_METHOD_NUM,
PW_MODULE_PROXY_EVENT_NUM,
PW_MODULE_METHOD_NUM,
PW_MODULE_EVENT_NUM,
.client_marshal = &pw_protocol_native_module_method_marshal,
.server_demarshal = pw_protocol_native_module_method_demarshal,
.server_marshal = &pw_protocol_native_module_event_marshal,