mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
pw_device_proxy -> pw_device
This commit is contained in:
parent
a8f1d756c3
commit
f1eb5f6046
13 changed files with 79 additions and 79 deletions
|
|
@ -892,8 +892,8 @@ static void device_event_info(void *object, const struct pw_device_info *info)
|
|||
}
|
||||
}
|
||||
|
||||
static const struct pw_device_proxy_events device_events = {
|
||||
PW_VERSION_DEVICE_PROXY_EVENTS,
|
||||
static const struct pw_device_events device_events = {
|
||||
PW_VERSION_DEVICE_EVENTS,
|
||||
.info = device_event_info,
|
||||
.param = event_param
|
||||
};
|
||||
|
|
@ -1104,7 +1104,7 @@ static bool bind_global(struct remote_data *rd, struct global *global, char **er
|
|||
break;
|
||||
case PW_TYPE_INTERFACE_Device:
|
||||
events = &device_events;
|
||||
client_version = PW_VERSION_DEVICE_PROXY;
|
||||
client_version = PW_VERSION_DEVICE;
|
||||
destroy = (pw_destroy_t) pw_device_info_free;
|
||||
info_func = info_device;
|
||||
break;
|
||||
|
|
@ -1260,7 +1260,7 @@ static bool do_create_device(struct data *data, const char *cmd, char *args, cha
|
|||
|
||||
proxy = pw_core_create_object(rd->core, a[0],
|
||||
PW_TYPE_INTERFACE_Device,
|
||||
PW_VERSION_DEVICE_PROXY,
|
||||
PW_VERSION_DEVICE,
|
||||
props ? &props->dict : NULL,
|
||||
sizeof(struct proxy_data));
|
||||
|
||||
|
|
@ -1464,7 +1464,7 @@ static bool do_enum_params(struct data *data, const char *cmd, char *args, char
|
|||
param_id, 0, 0, NULL);
|
||||
break;
|
||||
case PW_TYPE_INTERFACE_Device:
|
||||
pw_device_proxy_enum_params((struct pw_device_proxy*)global->proxy, 0,
|
||||
pw_device_enum_params((struct pw_device*)global->proxy, 0,
|
||||
param_id, 0, 0, NULL);
|
||||
break;
|
||||
case PW_TYPE_INTERFACE_Endpoint:
|
||||
|
|
|
|||
|
|
@ -551,8 +551,8 @@ static void device_event_info(void *data, const struct pw_device_info *info)
|
|||
global_event_info(data, info);
|
||||
}
|
||||
|
||||
static const struct pw_device_proxy_events device_events = {
|
||||
PW_VERSION_DEVICE_PROXY_EVENTS,
|
||||
static const struct pw_device_events device_events = {
|
||||
PW_VERSION_DEVICE_EVENTS,
|
||||
.info = device_event_info
|
||||
};
|
||||
|
||||
|
|
@ -643,7 +643,7 @@ static void registry_event_global(void *data, uint32_t id, uint32_t permissions,
|
|||
info_destroy = (pw_destroy_t)pw_device_info_free;
|
||||
info_update = (info_update_t)pw_device_info_update;
|
||||
draw = draw_device;
|
||||
client_version = PW_VERSION_DEVICE_PROXY;
|
||||
client_version = PW_VERSION_DEVICE;
|
||||
break;
|
||||
case PW_TYPE_INTERFACE_Factory:
|
||||
events = &factory_events;
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ static void device_event_info(void *object, const struct pw_device_info *info)
|
|||
remove_params(data, info->params[i].id, 0);
|
||||
if (!SPA_FLAG_IS_SET(info->params[i].flags, SPA_PARAM_INFO_READ))
|
||||
continue;
|
||||
pw_device_proxy_enum_params((struct pw_device_proxy*)data->proxy,
|
||||
pw_device_enum_params((struct pw_device*)data->proxy,
|
||||
0, info->params[i].id, 0, 0, NULL);
|
||||
}
|
||||
add_pending(data);
|
||||
|
|
@ -536,8 +536,8 @@ static void device_event_info(void *object, const struct pw_device_info *info)
|
|||
data->print_func(data);
|
||||
}
|
||||
|
||||
static const struct pw_device_proxy_events device_events = {
|
||||
PW_VERSION_DEVICE_PROXY_EVENTS,
|
||||
static const struct pw_device_events device_events = {
|
||||
PW_VERSION_DEVICE_EVENTS,
|
||||
.info = device_event_info,
|
||||
.param = event_param
|
||||
};
|
||||
|
|
@ -595,7 +595,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
break;
|
||||
case PW_TYPE_INTERFACE_Device:
|
||||
events = &device_events;
|
||||
client_version = PW_VERSION_DEVICE_PROXY;
|
||||
client_version = PW_VERSION_DEVICE;
|
||||
destroy = (pw_destroy_t) pw_device_info_free;
|
||||
print_func = print_device;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue