Subversion Repositories mdb

Rev

Rev 34 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 andreas 1
/*
34 andreas 2
 * Copyright (C) 2015, 2016 by Andreas Theofilu <andreas@theosys.at>
2 andreas 3
 *
4
 * All rights reserved. No warranty, explicit or implicit, provided.
5
 *
6
 * NOTICE:  All information contained herein is, and remains
7
 * the property of Andreas Theofilu and his suppliers, if any.
8
 * The intellectual and technical concepts contained
9
 * herein are proprietary to Andreas Theofilu and its suppliers and
10
 * may be covered by European and Foreign Patents, patents in process,
11
 * and are protected by trade secret or copyright law.
12
 * Dissemination of this information or reproduction of this material
13
 * is strictly forbidden unless prior written permission is obtained
14
 * from Andreas Theofilu.
15
 */
16
 
17
#ifndef __CONFIG_H__
18
#define __CONFIG_H__
19
 
41 andreas 20
#define VERSION		"1.1.0"
9 andreas 21
#define MUSICDB		"/music.db"
22
 
34 andreas 23
#define ASYSTEM_ALSA	1
24
#define ASYSTEM_PULSE	2
25
 
2 andreas 26
typedef struct
27
{
4 andreas 28
	char User[32];				/* Run as user "User" */
29
	char Grp[32];				/* Run under group "Grp" */
30
	int port;					/* Network port to listen to */
31
	char Pidfile[256];			/* File name where PID is stored */
32
	char Pathfile[256];			/* Filename of file with music directories */
5 andreas 33
	char home[256];				/* Filename of directory where to store the database. */
34 andreas 34
	int debug;					/* 0 = debug off, >0 = debug on */
28 andreas 35
	char player[256];			/* Type of player: ALSA, PULSE, OSS, ... */
2 andreas 36
}CONFIGURE;
37
 
38
extern CONFIGURE configs;
39
 
40
void readConf(void);
41
 
42
#endif