]> git.stg.codes - stg.git/blob - include/stg/const.h
Removed some conflicting macros.
[stg.git] / include / stg / const.h
1 /*
2  *    This program is free software; you can redistribute it and/or modify
3  *    it under the terms of the GNU General Public License as published by
4  *    the Free Software Foundation; either version 2 of the License, or
5  *    (at your option) any later version.
6  *
7  *    This program is distributed in the hope that it will be useful,
8  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  *    GNU General Public License for more details.
11  *
12  *    You should have received a copy of the GNU General Public License
13  *    along with this program; if not, write to the Free Software
14  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15  */
16
17 /*
18  *    Author : Boris Mikhailenko <stg34@ua.fm>
19  */
20
21  /*
22  $Author: nobunaga $
23  $Revision: 1.10 $
24  $Date: 2008/01/11 17:33:50 $
25  */
26
27
28 #ifndef STG_CONST_H
29 #define STG_CONST_H
30
31 #define DIR_NUM         (10)
32 #define SYS_IFACE_LEN   (9)
33 #define IFACE_LEN       (255)
34 #define MAX_IP          (5)
35 #define USERDATA_NUM    (10)
36
37 #define LOGIN_LEN       (32)
38 #define PASSWD_LEN      (32)
39 #define ADDR_LEN        (255)
40 #define NOTE_LEN        (255)
41 #define REALNM_LEN      (255)
42 #define GROUP_LEN       (255)
43 #define PHONE_LEN       (255)
44 #define EMAIL_LEN       (255)
45 #define USR_IFACE_LEN   (255)
46 #define USER_DATA_LEN   (255)
47 #define IP_STRING_LEN   (255)
48
49 #define ADM_LOGIN_LEN   (32)
50 #define ADM_PASSWD_LEN  (32)
51 #define TARIFF_NAME_LEN (32)
52 #define SERVER_NAME_LEN (255)
53
54 #define DIR_NAME_LEN    (16)
55
56 #define MAX_MSG_LEN     (235)
57 #define MAX_MSG_LEN_8   (1030)
58
59 #define LOGCASH         (1)
60 #define NOLOGCASH       (0)
61
62 #define USERNOCASH      (0)
63 #define USERDISCONNECT  (1)
64
65 #define LOGEVENT_CONNECT            (0)
66 #define LOGEVENT_DISCONNECT         (1)
67 #define LOGEVENT_NEW_MONTH          (2)
68 #define LOGEVENT_NO_CASH            (3)
69 #define LOGEVENT_CONNECT_NO_CASH    (4)
70 #define LOGEVENT_USER_DOWN          (5)
71 #define LOGEVENT_DELETED            (6)
72
73 #define SET_TARIFF_NOW     (0)
74 #define SET_TARIFF_DELAYED (1)
75 #define SET_TARIFF_RECALC  (2)
76
77 #define CASH_SET    (0)
78 #define CASH_ADD    (1)
79
80 #define NO_TARIFF_NAME  "*_NO_TARIFF_*"
81 #define NO_CORP_NAME    "*_NO_CORP_*"
82
83 #define MONITOR_TIME_DELAY_SEC  (60)
84
85 #endif