Clean and tiddy-up files.
[tomato.git] / release / src / router / udpxy / extrn.c
blob39334c63798decc2ffa450612c25421e073cc77b
1 /* @(#) external common resources (variables and constants)
3 * Copyright 2008-2011 Pavel V. Cherenkov (pcherenkov@gmail.com)
5 * This file is part of udpxy.
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.
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.
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/>.
21 #include <sys/types.h>
22 #include <signal.h>
23 #include <stdio.h>
25 /* server commands
27 const char CMD_UDP[] = "udp";
28 const char CMD_STATUS[] = "status";
29 const char CMD_RESTART[] = "restart";
30 const char CMD_RTP[] = "rtp";
32 const size_t CMD_UDP_LEN = sizeof(CMD_UDP);
33 const size_t CMD_STATUS_LEN = sizeof(CMD_STATUS);
34 const size_t CMD_RESTART_LEN = sizeof(CMD_RESTART);
35 const size_t CMD_RTP_LEN = sizeof(CMD_RTP);
37 const char UDPXY_COPYRIGHT_NOTICE[] =
38 "udpxy and udpxrec are Copyright (C) 2008-2011 Pavel V. Cherenkov and licensed under GNU GPLv3";
39 const char UDPXY_CONTACT[] =
40 "Contact by email: pcherenkov@gmail.com; ICQ # 7197767";
42 #ifndef TRACE_MODULE
43 const char COMPILE_MODE[] = "lean";
44 #else
45 const char COMPILE_MODE[] = "standard";
46 #endif
48 const char g_udpxy_app[] = "udpxy";
50 #ifdef UDPXREC_MOD
51 const char g_udpxrec_app[] = "udpxrec";
52 #endif
54 const char IPv4_ALL[] = "0.0.0.0";
56 const char VERSION[] =
57 #include "VERSION"
60 const int BUILDNUM =
61 #include "BUILD"
64 const char BUILD_TYPE[] =
65 #include "BLDTYPE"
68 /* application log */
69 FILE* g_flog = NULL;
71 /* signal-handler set quit flag */
72 volatile sig_atomic_t g_quit = 0;
75 /* __EOF__ */