]> code.delx.au - pulseaudio/blob - polyp/daemon-conf.h
Make the whole stuff LGPL only
[pulseaudio] / polyp / daemon-conf.h
1 #ifndef foodaemonconfhfoo
2 #define foodaemonconfhfoo
3
4 /* $Id$ */
5
6 /***
7 This file is part of polypaudio.
8
9 polypaudio is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published
11 by the Free Software Foundation; either version 2 of the License,
12 or (at your option) any later version.
13
14 polypaudio is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with polypaudio; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 USA.
23 ***/
24
25 #include "log.h"
26
27 enum pa_daemon_conf_cmd {
28 PA_CMD_DAEMON,
29 PA_CMD_HELP,
30 PA_CMD_VERSION,
31 PA_CMD_DUMP_CONF,
32 PA_CMD_DUMP_MODULES
33 };
34
35 struct pa_daemon_conf {
36 enum pa_daemon_conf_cmd cmd;
37 int daemonize,
38 fail,
39 verbose,
40 high_priority,
41 disallow_module_loading,
42 exit_idle_time,
43 module_idle_time,
44 scache_idle_time,
45 auto_log_target;
46 char *script_commands, *dl_search_path, *default_script_file;
47 enum pa_log_target log_target;
48 int resample_method;
49 char *config_file;
50 };
51
52 struct pa_daemon_conf* pa_daemon_conf_new(void);
53 void pa_daemon_conf_free(struct pa_daemon_conf*c);
54
55 int pa_daemon_conf_load(struct pa_daemon_conf *c, const char *filename);
56 char *pa_daemon_conf_dump(struct pa_daemon_conf *c);
57 int pa_daemon_conf_env(struct pa_daemon_conf *c);
58
59 int pa_daemon_conf_set_log_target(struct pa_daemon_conf *c, const char *string);
60 int pa_daemon_conf_set_resample_method(struct pa_daemon_conf *c, const char *string);
61
62 #endif