PipeWire  0.2.0
command.h
Go to the documentation of this file.
1 /* PipeWire
2  * Copyright (C) 2016 Axis Communications <dev-gstreamer@axis.com>
3  * @author Linus Svensson <linus.svensson@axis.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef __PIPEWIRE_COMMAND_H__
22 #define __PIPEWIRE_COMMAND_H__
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 struct pw_command;
33 
34 #include <pipewire/core.h>
35 
36 
37 struct pw_command *
38 pw_command_parse(const char *line, char **err);
39 
40 void
41 pw_command_free(struct pw_command *command);
42 
43 int pw_command_run(struct pw_command *command, struct pw_core *core, char **err);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* __PIPEWIRE_COMMAND_H__ */
struct pw_command * pw_command_parse(const char *line, char **err)
Parses a command line.
Definition: command.c:157
int pw_command_run(struct pw_command *command, struct pw_core *core, char **err)
Run a command.
Definition: command.c:190
A configuration command.
the core PipeWire object
void pw_command_free(struct pw_command *command)
Free command.
Definition: command.c:138