mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -231,11 +231,11 @@ static void device_event_info(void *object, const struct pw_device_info *update)
|
|||
|
||||
switch (info->params[n].id) {
|
||||
case SPA_PARAM_EnumProfile:
|
||||
pw_device_proxy_enum_params((struct pw_device_proxy*)g->proxy,
|
||||
pw_device_enum_params((struct pw_device*)g->proxy,
|
||||
0, SPA_PARAM_EnumProfile, 0, -1, NULL);
|
||||
break;
|
||||
case SPA_PARAM_Profile:
|
||||
pw_device_proxy_enum_params((struct pw_device_proxy*)g->proxy,
|
||||
pw_device_enum_params((struct pw_device*)g->proxy,
|
||||
0, SPA_PARAM_Profile, 0, -1, NULL);
|
||||
break;
|
||||
default:
|
||||
|
|
@ -296,8 +296,8 @@ static void device_event_param(void *object, int seq,
|
|||
}
|
||||
}
|
||||
|
||||
static const struct pw_device_proxy_events device_events = {
|
||||
PW_VERSION_ENDPOINT_PROXY_EVENTS,
|
||||
static const struct pw_device_events device_events = {
|
||||
PW_VERSION_DEVICE_EVENTS,
|
||||
.info = device_event_info,
|
||||
.param = device_event_param,
|
||||
};
|
||||
|
|
@ -592,7 +592,7 @@ static int set_mask(pa_context *c, struct global *g)
|
|||
g->event = PA_SUBSCRIPTION_EVENT_CARD;
|
||||
|
||||
events = &device_events;
|
||||
client_version = PW_VERSION_DEVICE_PROXY;
|
||||
client_version = PW_VERSION_DEVICE;
|
||||
destroy = device_destroy;
|
||||
spa_list_init(&g->card_info.profiles);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1372,7 +1372,7 @@ static void card_profile(pa_operation *o, void *userdata)
|
|||
if (id == SPA_ID_INVALID)
|
||||
goto done;;
|
||||
|
||||
pw_device_proxy_set_param((struct pw_device_proxy*)g->proxy,
|
||||
pw_device_set_param((struct pw_device*)g->proxy,
|
||||
SPA_PARAM_Profile, 0,
|
||||
spa_pod_builder_add_object(&b,
|
||||
SPA_TYPE_OBJECT_ParamProfile, SPA_PARAM_Profile,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue