mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-30 13:14:16 -04:00
pulse: generate Usage from module_args definition
Add some more fields like the type, default value and possible enum values for the module_args. Use this to generate the Usage in describe-module and the docs. This should give more consistent and correct Usage output in all modules.
This commit is contained in:
parent
9f7eb63486
commit
9bcbd7b586
35 changed files with 366 additions and 631 deletions
|
|
@ -21,7 +21,22 @@ struct module_args {
|
|||
const char *key;
|
||||
const char *description;
|
||||
#define MODULE_ARG_MANDATORY (1u<<0)
|
||||
#define MODULE_ARG_ENOTIMPL (1u<<1)
|
||||
uint32_t flags;
|
||||
#define MODULE_TYPE_NONE ""
|
||||
#define MODULE_TYPE_STRING "string"
|
||||
#define MODULE_TYPE_STRINGV "stringv"
|
||||
#define MODULE_TYPE_STRINGE "stringe"
|
||||
#define MODULE_TYPE_USEC "usec"
|
||||
#define MODULE_TYPE_MSEC "msec"
|
||||
#define MODULE_TYPE_INT "int"
|
||||
#define MODULE_TYPE_BOOL "bool"
|
||||
#define MODULE_TYPE_PROPS "proplist"
|
||||
#define MODULE_TYPE_FORMAT "format"
|
||||
#define MODULE_TYPE_CHMAP "chmap"
|
||||
const char *type;
|
||||
const char *def;
|
||||
const char **vals;
|
||||
};
|
||||
|
||||
struct module_info {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue