command: clean up a little

This commit is contained in:
Wim Taymans 2017-09-15 14:54:52 +02:00
parent d26d7a8040
commit 4bef583b75
3 changed files with 68 additions and 36 deletions

View file

@ -32,10 +32,17 @@ extern "C" {
#include "pipewire/pipewire.h"
#include "pipewire/introspect.h"
struct pw_command;
typedef bool (*pw_command_func_t) (struct pw_command *command, struct pw_core *core, char **err);
/** \cond */
struct pw_command {
uint32_t id; /**< id of command */
struct spa_list link; /**< link in list of commands */
const char *name; /**< command name */
pw_command_func_t func;
char **args;
int n_args;
};
struct pw_protocol {