pw_device_proxy -> pw_device

This commit is contained in:
Wim Taymans 2019-12-11 15:00:41 +01:00
parent a8f1d756c3
commit f1eb5f6046
13 changed files with 79 additions and 79 deletions

View file

@ -61,7 +61,7 @@ static int make_device(struct data *data)
data->device = pw_impl_factory_create_object(factory,
NULL,
PW_TYPE_INTERFACE_Device,
PW_VERSION_DEVICE_PROXY,
PW_VERSION_DEVICE,
props, SPA_ID_INVALID);
pw_core_export(data->core, SPA_TYPE_INTERFACE_Device, NULL,

View file

@ -401,7 +401,7 @@ static void set_jack_profile(struct impl *impl, int index)
if (impl->jack_device == NULL)
return;
pw_device_proxy_set_param((struct pw_device_proxy*)impl->jack_device,
pw_device_set_param((struct pw_device*)impl->jack_device,
SPA_PARAM_Profile, 0,
spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_ParamProfile, SPA_PARAM_Profile,
@ -687,7 +687,7 @@ static int alsa_start_jack_device(struct impl *impl)
impl->jack_device = sm_media_session_create_object(impl->session,
"spa-device-factory",
PW_TYPE_INTERFACE_Device,
PW_VERSION_DEVICE_PROXY,
PW_VERSION_DEVICE,
&props->dict,
0);

View file

@ -323,7 +323,7 @@ static void device_event_info(void *object, const struct pw_device_info *info)
device->obj.changed |= SM_DEVICE_CHANGE_MASK_INFO;
if (info->change_mask & PW_DEVICE_CHANGE_MASK_PARAMS) {
pw_device_proxy_enum_params((struct pw_device_proxy*)device->obj.proxy,
pw_device_enum_params((struct pw_device*)device->obj.proxy,
1, SPA_PARAM_Profile, 0, UINT32_MAX, NULL);
}
pw_proxy_sync(device->obj.proxy, 1);
@ -346,8 +346,8 @@ static void device_event_param(void *object, int seq,
device->obj.changed |= SM_DEVICE_CHANGE_MASK_PARAMS;
}
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 = device_event_param,
};
@ -378,7 +378,7 @@ static void device_destroy(void *object)
static const struct object_info device_info = {
.type = PW_TYPE_INTERFACE_Device,
.version = PW_VERSION_DEVICE_PROXY,
.version = PW_VERSION_DEVICE,
.events = &device_events,
.size = sizeof(struct sm_device),
.init = device_init,