1/* @(#) external common resources (variables and constants)
2 *
3 * Copyright 2008-2011 Pavel V. Cherenkov (pcherenkov@gmail.com)
4 *
5 *  This file is part of udpxy.
6 *
7 *  udpxy is free software: you can redistribute it and/or modify
8 *  it under the terms of the GNU General Public License as published by
9 *  the Free Software Foundation, either version 3 of the License, or
10 *  (at your option) any later version.
11 *
12 *  udpxy is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 *  GNU General Public License for more details.
16 *
17 *  You should have received a copy of the GNU General Public License
18 *  along with udpxy.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#include <sys/types.h>
22#include <signal.h>
23#include <stdio.h>
24
25/* server commands
26 */
27const char  CMD_UDP[]            = "udp";
28const char  CMD_STATUS[]         = "status";
29const char  CMD_RESTART[]        = "restart";
30const char  CMD_RTP[]            = "rtp";
31
32const size_t CMD_UDP_LEN         = sizeof(CMD_UDP);
33const size_t CMD_STATUS_LEN      = sizeof(CMD_STATUS);
34const size_t CMD_RESTART_LEN     = sizeof(CMD_RESTART);
35const size_t CMD_RTP_LEN         = sizeof(CMD_RTP);
36
37const char UDPXY_COPYRIGHT_NOTICE[] =
38    "udpxy and udpxrec are Copyright (C) 2008-2013 Pavel V. Cherenkov and licensed under GNU GPLv3";
39const char UDPXY_CONTACT[] =
40    "Contact: www.udpxy.com/forum; support@udpxy.com";
41
42#ifndef TRACE_MODULE
43  const char COMPILE_MODE[] = "lean";
44#else
45  const char COMPILE_MODE[] = "standard";
46#endif
47
48const char   g_udpxy_app[]  = "udpxy";
49
50#ifdef UDPXREC_MOD
51const char   g_udpxrec_app[] = "udpxrec";
52#endif
53
54const char IPv4_ALL[] = "0.0.0.0";
55
56const char VERSION[] =
57#include "VERSION"
58;
59
60const int BUILDNUM =
61#include "BUILD"
62;
63
64const int PATCH =
65#include "PATCH"
66;
67
68const char BUILD_TYPE[] =
69#include "BLDTYPE"
70;
71
72/* application log */
73FILE*  g_flog = NULL;
74
75/* signal-handler set quit flag */
76volatile sig_atomic_t g_quit = 0;
77
78
79/* __EOF__ */
80
81