config.h 2.4 KB
Newer Older
Bahadır Kandemir's avatar
Bahadır Kandemir committed
1 2
/*
 *
3
 * Copyright (c) 2016-2018, Suleyman POYRAZ (AquilaNipalensis)
Bahadır Kandemir's avatar
Bahadır Kandemir committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef CONFIG_H
#define CONFIG_H

#ifndef VERSION
Ozan Çağlayan's avatar
Ozan Çağlayan committed
31
#define VERSION "3.0.3"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
32 33 34 35 36 37 38
#endif

#ifndef DBUS_SERVER_ADDRESS
#define DBUS_SERVER_ADDRESS "unix:path=/var/run/dbus/system_bus_socket"
#endif

#ifndef DBUS_SERVICE_NAME
39
#define DBUS_SERVICE_NAME "tr.org.sulin.scom"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
40 41 42
#endif

#ifndef DBUS_INTERFACE_PREFIX
43
#define DBUS_INTERFACE_PREFIX "tr.org.sulin.scom"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
44 45 46 47 48 49 50
#endif

#ifndef IDLE_TIMEOUT
#define IDLE_TIMEOUT 60
#endif

#ifndef DIR_DATA
51
#define DIR_DATA "/var/db/scom3"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
52 53 54
#endif

#ifndef DIR_LOG
55
#define DIR_LOG "/var/log/scom3"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
56 57 58
#endif

#ifndef FILE_PID
59
#define FILE_PID "/var/run/scom3.pid"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
60 61 62
#endif

#ifndef WWW_BUGS
63
#define WWW_BUGS "http://bugs.sulin.org.tr"
Bahadır Kandemir's avatar
Bahadır Kandemir committed
64 65 66
#endif

extern char *config_server_address;
67
extern const char *config_unique_address;
Bahadır Kandemir's avatar
Bahadır Kandemir committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
extern char *config_service_name;
extern char *config_interface;
extern char *config_dir_data;
extern char *config_dir_log;
extern char *config_file_pid;

extern int config_timeout;
extern int config_debug;
extern int config_print;
extern int config_runlevel;
extern int config_ignore_missing;

extern char *config_dir_models;
extern char *config_dir_modules;
extern char *config_dir_scripts;
extern char *config_dir_apps;
extern char *config_file_log_access;
extern char *config_file_log_traceback;

void config_init(int argc, char *argv[]);
#endif /* CONFIG_H */