diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-02-23 23:41:20 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-02-23 23:41:20 +0000 |
commit | d35747a40c7dea12de95f78a4f283a45ef687597 (patch) | |
tree | 3a85f138e68c7ef3e5a9ece863ed7266ad1cd7ce /src/conf.h | |
download | mpd-d35747a40c7dea12de95f78a4f283a45ef687597.tar.gz mpd-d35747a40c7dea12de95f78a4f283a45ef687597.tar.xz mpd-d35747a40c7dea12de95f78a4f283a45ef687597.zip |
import from SF CVS
git-svn-id: https://svn.musicpd.org/mpd/trunk@1 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/conf.h')
-rw-r--r-- | src/conf.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h new file mode 100644 index 000000000..8afca42eb --- /dev/null +++ b/src/conf.h @@ -0,0 +1,61 @@ +/* the Music Player Daemon (MPD) + * (c)2003-2004 by Warren Dukes (shank@mercury.chem.pitt.edu) + * This project's homepage is: http://www.musicpd.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef CONF_H +#define CONF_H + +#define CONF_PORT 0 +#define CONF_MUSIC_DIRECTORY 1 +#define CONF_PLAYLIST_DIRECTORY 2 +#define CONF_LOG_FILE 3 +#define CONF_ERROR_FILE 4 +#define CONF_CONNECTION_TIMEOUT 5 +#define CONF_MIXER_DEVICE 6 +#define CONF_MAX_CONNECTIONS 7 +#define CONF_MAX_PLAYLIST_LENGTH 8 +#define CONF_BUFFER_BEFORE_PLAY 9 +#define CONF_MAX_COMMAND_LIST_SIZE 10 +#define CONF_MAX_OUTPUT_BUFFER_SIZE 11 +#define CONF_AO_DRIVER 12 +#define CONF_AO_DRIVER_OPTIONS 13 +#define CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS 14 +#define CONF_BIND_TO_ADDRESS 15 +#define CONF_MIXER_TYPE 16 +#define CONF_STATE_FILE 17 +#define CONF_USER 18 +#define CONF_DB_FILE 19 +#define CONF_LOG_LEVEL 20 +#define CONF_MIXER_CONTROL 21 +#define CONF_AUDIO_WRITE_SIZE 22 +#define CONF_FS_CHARSET 23 +#define CONF_PASSWORD 24 +#define CONF_DEFAULT_PERMISSIONS 25 +#define CONF_BUFFER_SIZE 26 + +#define CONF_CAT_CHAR "\n" + +/* do not free the return value, it is a static variable */ +char ** readConf(char * file); + +char ** getConf(); + +void initConf(); + +void writeConf(char * file); + +#endif |