pw_impl_device_new -> pw_context_create_device

This commit is contained in:
Wim Taymans 2019-12-11 17:56:24 +01:00
parent c3f6524120
commit 6043a3f8c0
4 changed files with 5 additions and 5 deletions

View file

@ -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);
device = pw_impl_device_new(context, properties, sizeof(struct impl));
device = pw_context_create_device(context, properties, sizeof(struct impl));
if (device == NULL)
return NULL;

View file

@ -80,7 +80,7 @@ pw_spa_device_new(struct pw_context *context,
struct impl *impl;
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)
return NULL;