mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw_impl_device_new -> pw_context_create_device
This commit is contained in:
parent
c3f6524120
commit
6043a3f8c0
4 changed files with 5 additions and 5 deletions
|
|
@ -128,7 +128,7 @@ struct pw_impl_device *pw_client_device_new(struct pw_resource *resource,
|
||||||
|
|
||||||
pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d", client->global->id);
|
pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d", client->global->id);
|
||||||
|
|
||||||
device = pw_impl_device_new(context, properties, sizeof(struct impl));
|
device = pw_context_create_device(context, properties, sizeof(struct impl));
|
||||||
if (device == NULL)
|
if (device == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ pw_spa_device_new(struct pw_context *context,
|
||||||
struct impl *impl;
|
struct impl *impl;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
this = pw_impl_device_new(context, properties, sizeof(struct impl) + user_data_size);
|
this = pw_context_create_device(context, properties, sizeof(struct impl) + user_data_size);
|
||||||
if (this == NULL)
|
if (this == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ static void check_properties(struct pw_impl_device *device)
|
||||||
}
|
}
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
struct pw_impl_device *pw_impl_device_new(struct pw_context *context,
|
struct pw_impl_device *pw_context_create_device(struct pw_context *context,
|
||||||
struct pw_properties *properties,
|
struct pw_properties *properties,
|
||||||
size_t user_data_size)
|
size_t user_data_size)
|
||||||
{
|
{
|
||||||
|
|
@ -574,7 +574,7 @@ static void device_add_object(struct pw_impl_device *device, uint32_t id,
|
||||||
case SPA_TYPE_INTERFACE_Device:
|
case SPA_TYPE_INTERFACE_Device:
|
||||||
{
|
{
|
||||||
struct pw_impl_device *dev;
|
struct pw_impl_device *dev;
|
||||||
dev = pw_impl_device_new(context, props, sizeof(struct object_data));
|
dev = pw_context_create_device(context, props, sizeof(struct object_data));
|
||||||
|
|
||||||
od = pw_impl_device_get_user_data(dev);
|
od = pw_impl_device_get_user_data(dev);
|
||||||
od->object = dev;
|
od->object = dev;
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ struct pw_impl_device_events {
|
||||||
void (*info_changed) (void *data, const struct pw_device_info *info);
|
void (*info_changed) (void *data, const struct pw_device_info *info);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct pw_impl_device *pw_impl_device_new(struct pw_context *context,
|
struct pw_impl_device *pw_context_create_device(struct pw_context *context,
|
||||||
struct pw_properties *properties,
|
struct pw_properties *properties,
|
||||||
size_t user_data_size);
|
size_t user_data_size);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue