mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add preliminary command line parsing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@64 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d4e0d51c15
commit
b69178b067
4 changed files with 138 additions and 1 deletions
19
src/cmdline.h
Normal file
19
src/cmdline.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef foocmdlinehfoo
|
||||
#define foocmdlinehfoo
|
||||
|
||||
struct pa_cmdline_module {
|
||||
char *name, *arguments;
|
||||
struct pa_cmdline_module *next;
|
||||
};
|
||||
|
||||
struct pa_cmdline {
|
||||
int daemonize, help;
|
||||
struct pa_cmdline_module *first_module, *last_module;
|
||||
};
|
||||
|
||||
struct pa_cmdline* pa_cmdline_parse(int argc, char * const argv []);
|
||||
void pa_cmdline_free(struct pa_cmdline *cmd);
|
||||
|
||||
void pa_cmdline_help(const char *argv0);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue