mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
tools: improve indentation
This commit is contained in:
parent
858d4e9e1c
commit
27dbbd40c9
13 changed files with 136 additions and 136 deletions
|
|
@ -164,7 +164,7 @@ static void print_params(struct spa_param_info *params, uint32_t n_params, char
|
|||
|
||||
static bool do_not_implemented(struct data *data, const char *cmd, char *args, char **error)
|
||||
{
|
||||
*error = spa_aprintf("Command \"%s\" not yet implemented", cmd);
|
||||
*error = spa_aprintf("Command \"%s\" not yet implemented", cmd);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ static struct global *find_global(struct remote_data *rd, const char *pattern)
|
|||
continue;
|
||||
if (global_matches(g, pattern))
|
||||
return g;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -495,7 +495,7 @@ static void remote_data_free(struct remote_data *rd)
|
|||
static bool do_connect(struct data *data, const char *cmd, char *args, char **error)
|
||||
{
|
||||
char *a[1];
|
||||
int n;
|
||||
int n;
|
||||
struct pw_properties *props = NULL;
|
||||
struct pw_core *core;
|
||||
struct remote_data *rd;
|
||||
|
|
@ -540,7 +540,7 @@ static bool do_connect(struct data *data, const char *cmd, char *args, char **er
|
|||
static bool do_disconnect(struct data *data, const char *cmd, char *args, char **error)
|
||||
{
|
||||
char *a[1];
|
||||
int n;
|
||||
int n;
|
||||
uint32_t idx;
|
||||
struct remote_data *rd = data->current;
|
||||
|
||||
|
|
@ -564,8 +564,8 @@ static bool do_disconnect(struct data *data, const char *cmd, char *args, char *
|
|||
|
||||
return true;
|
||||
|
||||
no_remote:
|
||||
*error = spa_aprintf("Remote %d does not exist", idx);
|
||||
no_remote:
|
||||
*error = spa_aprintf("Remote %d does not exist", idx);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -582,7 +582,7 @@ static bool do_list_remotes(struct data *data, const char *cmd, char *args, char
|
|||
static bool do_switch_remote(struct data *data, const char *cmd, char *args, char **error)
|
||||
{
|
||||
char *a[1];
|
||||
int n, idx = 0;
|
||||
int n, idx = 0;
|
||||
struct remote_data *rd;
|
||||
|
||||
n = pw_split_ip(args, WHITESPACE, 1, a);
|
||||
|
|
@ -599,8 +599,8 @@ static bool do_switch_remote(struct data *data, const char *cmd, char *args, cha
|
|||
|
||||
return true;
|
||||
|
||||
no_remote:
|
||||
*error = spa_aprintf("Remote %d does not exist", idx);
|
||||
no_remote:
|
||||
*error = spa_aprintf("Remote %d does not exist", idx);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -863,7 +863,7 @@ static void node_event_info(void *data, const struct pw_node_info *info)
|
|||
static void event_param(void *_data, int seq, uint32_t id,
|
||||
uint32_t index, uint32_t next, const struct spa_pod *param)
|
||||
{
|
||||
struct proxy_data *data = _data;
|
||||
struct proxy_data *data = _data;
|
||||
struct remote_data *rd = data->rd;
|
||||
|
||||
if (rd->data->interactive)
|
||||
|
|
@ -939,7 +939,7 @@ static void client_event_info(void *data, const struct pw_client_info *info)
|
|||
static void client_event_permissions(void *_data, uint32_t index,
|
||||
uint32_t n_permissions, const struct pw_permission *permissions)
|
||||
{
|
||||
struct proxy_data *data = _data;
|
||||
struct proxy_data *data = _data;
|
||||
struct remote_data *rd = data->rd;
|
||||
uint32_t i;
|
||||
|
||||
|
|
@ -1181,9 +1181,9 @@ destroy_proxy (void *data)
|
|||
}
|
||||
|
||||
static const struct pw_proxy_events proxy_events = {
|
||||
PW_VERSION_PROXY_EVENTS,
|
||||
.removed = removed_proxy,
|
||||
.destroy = destroy_proxy,
|
||||
PW_VERSION_PROXY_EVENTS,
|
||||
.removed = removed_proxy,
|
||||
.destroy = destroy_proxy,
|
||||
};
|
||||
|
||||
static bool do_list_objects(struct data *data, const char *cmd, char *args, char **error)
|
||||
|
|
@ -1380,7 +1380,7 @@ static bool do_info(struct data *data, const char *cmd, char *args, char **error
|
|||
{
|
||||
struct remote_data *rd = data->current;
|
||||
char *a[1];
|
||||
int n;
|
||||
int n;
|
||||
struct global *global;
|
||||
|
||||
n = pw_split_ip(args, WHITESPACE, 1, a);
|
||||
|
|
@ -1446,7 +1446,7 @@ static bool do_create_node(struct data *data, const char *cmd, char *args, char
|
|||
{
|
||||
struct remote_data *rd = data->current;
|
||||
char *a[2];
|
||||
int n;
|
||||
int n;
|
||||
uint32_t id;
|
||||
struct pw_proxy *proxy;
|
||||
struct pw_properties *props = NULL;
|
||||
|
|
@ -1471,9 +1471,9 @@ static bool do_create_node(struct data *data, const char *cmd, char *args, char
|
|||
pd = pw_proxy_get_user_data(proxy);
|
||||
pd->rd = rd;
|
||||
pd->proxy = proxy;
|
||||
pd->class = &node_class;
|
||||
pw_proxy_add_object_listener(proxy, &pd->object_listener, &node_events, pd);
|
||||
pw_proxy_add_listener(proxy, &pd->proxy_listener, &proxy_events, pd);
|
||||
pd->class = &node_class;
|
||||
pw_proxy_add_object_listener(proxy, &pd->object_listener, &node_events, pd);
|
||||
pw_proxy_add_listener(proxy, &pd->proxy_listener, &proxy_events, pd);
|
||||
|
||||
id = pw_map_insert_new(&data->vars, proxy);
|
||||
if (rd->data->interactive)
|
||||
|
|
@ -1486,7 +1486,7 @@ static bool do_destroy(struct data *data, const char *cmd, char *args, char **er
|
|||
{
|
||||
struct remote_data *rd = data->current;
|
||||
char *a[1];
|
||||
int n;
|
||||
int n;
|
||||
struct global *global;
|
||||
|
||||
n = pw_split_ip(args, WHITESPACE, 1, a);
|
||||
|
|
@ -1683,8 +1683,8 @@ static bool do_export_node(struct data *data, const char *cmd, char *args, char
|
|||
|
||||
return true;
|
||||
|
||||
no_remote:
|
||||
*error = spa_aprintf("Remote %d does not exist", idx);
|
||||
no_remote:
|
||||
*error = spa_aprintf("Remote %d does not exist", idx);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1847,7 +1847,7 @@ static bool do_get_permissions(struct data *data, const char *cmd, char *args, c
|
|||
{
|
||||
struct remote_data *rd = data->current;
|
||||
char *a[3];
|
||||
int n;
|
||||
int n;
|
||||
struct global *global;
|
||||
|
||||
n = pw_split_ip(args, WHITESPACE, 1, a);
|
||||
|
|
@ -2132,7 +2132,7 @@ static bool parse(struct data *data, char *buf, char **error)
|
|||
return c->func(data, cmd, args, error);
|
||||
}
|
||||
}
|
||||
*error = spa_aprintf("Command \"%s\" does not exist. Type 'help' for usage.", cmd);
|
||||
*error = spa_aprintf("Command \"%s\" does not exist. Type 'help' for usage.", cmd);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue