mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
metadata: fix indentation
This commit is contained in:
parent
44b8a03c40
commit
0594b3ac82
1 changed files with 12 additions and 12 deletions
|
|
@ -37,7 +37,7 @@ struct resource_data {
|
|||
pw_resource_call_res(r,struct pw_metadata_events,m,v,__VA_ARGS__)
|
||||
|
||||
#define pw_metadata_resource_property(r,...) \
|
||||
pw_metadata_resource(r,property,0,__VA_ARGS__)
|
||||
pw_metadata_resource(r,property,0,__VA_ARGS__)
|
||||
|
||||
static int metadata_property(void *data,
|
||||
uint32_t subject,
|
||||
|
|
@ -147,31 +147,31 @@ static const struct pw_resource_events impl_resource_events = {
|
|||
|
||||
static int
|
||||
global_bind(void *object, struct pw_impl_client *client, uint32_t permissions,
|
||||
uint32_t version, uint32_t id)
|
||||
uint32_t version, uint32_t id)
|
||||
{
|
||||
struct impl *impl = object;
|
||||
struct pw_resource *resource;
|
||||
struct resource_data *data;
|
||||
|
||||
resource = pw_resource_new(client, id, permissions, PW_TYPE_INTERFACE_Metadata, version, sizeof(*data));
|
||||
if (resource == NULL)
|
||||
return -errno;
|
||||
if (resource == NULL)
|
||||
return -errno;
|
||||
|
||||
data = pw_resource_get_user_data(resource);
|
||||
data->impl = impl;
|
||||
data->resource = resource;
|
||||
data = pw_resource_get_user_data(resource);
|
||||
data->impl = impl;
|
||||
data->resource = resource;
|
||||
|
||||
pw_global_add_resource(impl->global, resource);
|
||||
|
||||
/* listen for when the resource goes away */
|
||||
pw_resource_add_listener(resource,
|
||||
&data->resource_listener,
|
||||
&resource_events, data);
|
||||
pw_resource_add_listener(resource,
|
||||
&data->resource_listener,
|
||||
&resource_events, data);
|
||||
|
||||
/* resource methods -> implementation */
|
||||
pw_resource_add_object_listener(resource,
|
||||
&data->object_listener,
|
||||
&metadata_methods, data);
|
||||
&metadata_methods, data);
|
||||
|
||||
pw_impl_client_set_busy(client, true);
|
||||
|
||||
|
|
@ -182,7 +182,7 @@ global_bind(void *object, struct pw_impl_client *client, uint32_t permissions,
|
|||
|
||||
pw_resource_add_listener(impl->resource,
|
||||
&data->impl_resource_listener,
|
||||
&impl_resource_events, data);
|
||||
&impl_resource_events, data);
|
||||
|
||||
data->pong_seq = pw_resource_ping(impl->resource, data->pong_seq);
|
||||
impl->pending++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue