|
|
1.1 root 1: /* ars_defs.h */
2:
3: /* Synchronet Access Requirement Strings (ARS) constants */
4:
1.1.1.2 ! root 5: /* $Id: ars_defs.h,v 1.10 2009/03/20 08:51:08 rswindell Exp $ */
1.1 root 6:
7: /****************************************************************************
8: * @format.tab-size 4 (Plain Text/Source Code File Header) *
9: * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
10: * *
1.1.1.2 ! root 11: * Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html *
1.1 root 12: * *
13: * This program is free software; you can redistribute it and/or *
14: * modify it under the terms of the GNU General Public License *
15: * as published by the Free Software Foundation; either version 2 *
16: * of the License, or (at your option) any later version. *
17: * See the GNU General Public License for more details: gpl.txt or *
18: * http://www.fsf.org/copyleft/gpl.html *
19: * *
20: * Anonymous FTP access to the most recent released source is available at *
21: * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net *
22: * *
23: * Anonymous CVS access to the development source and modification history *
24: * is available at cvs.synchro.net:/cvsroot/sbbs, example: *
25: * cvs -d :pserver:[email protected]:/cvsroot/sbbs login *
26: * (just hit return, no password is necessary) *
27: * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src *
28: * *
29: * For Synchronet coding style and modification guidelines, see *
30: * http://www.synchro.net/source.html *
31: * *
32: * You are encouraged to submit any modifications (preferably in Unix diff *
33: * format) via e-mail to [email protected] *
34: * *
35: * Note: If this box doesn't appear square, then you need to fix your tabs. *
36: ****************************************************************************/
37:
38: #ifndef _ARS_DEFS_H
39: #define _ARS_DEFS_H
40:
41: /************************************************************************/
42: /* Synchronet Access Requirement Strings fucntion prototypes and type */
43: /* definitions */
44: /************************************************************************/
45:
46: #include <stdio.h>
47: #include <stdlib.h>
48: #include <string.h>
49: #include <ctype.h>
50:
51: #include "gen_defs.h"
52: #include "scfgdefs.h"
53:
54: #ifdef __cplusplus
55: extern "C"
56: #endif
57: uchar *arstr(ushort* count, char* str, scfg_t* cfg);
58:
1.1.1.2 ! root 59: #define AR_INVALID -1 /* Unspecified keyword */
! 60:
1.1 root 61: enum { /* Access requirement binaries */
62: AR_NULL
63: ,AR_OR
64: ,AR_NOT
65: ,AR_EQUAL
66: ,AR_BEGNEST
67: ,AR_ENDNEST
68: ,AR_LEVEL
69: ,AR_AGE
70: ,AR_BPS
71: ,AR_NODE
72: ,AR_TLEFT
73: ,AR_TUSED
1.1.1.2 ! root 74: ,AR_USER /* 12 */
1.1 root 75: ,AR_TIME
76: ,AR_PCR
77: ,AR_FLAG1
78: ,AR_FLAG2
79: ,AR_FLAG3
80: ,AR_FLAG4
81: ,AR_EXEMPT
82: ,AR_REST
83: ,AR_SEX
84: ,AR_UDR
85: ,AR_UDFR
86: ,AR_EXPIRE
87: ,AR_CREDIT
88: ,AR_DAY
89: ,AR_ANSI
90: ,AR_RIP
91: ,AR_LOCAL
92: ,AR_GROUP
93: ,AR_SUB
94: ,AR_LIB
95: ,AR_DIR
96: ,AR_EXPERT
97: ,AR_SYSOP
98: ,AR_QUIET
99: ,AR_MAIN_CMDS
100: ,AR_FILE_CMDS
101: ,AR_RANDOM
102: ,AR_LASTON
103: ,AR_LOGONS
104: ,AR_WIP
105: ,AR_SUBCODE
106: ,AR_DIRCODE
107: ,AR_OS2
108: ,AR_DOS
109: ,AR_WIN32
110: ,AR_UNIX
111: ,AR_LINUX
112: ,AR_SHELL
113: ,AR_PROT
114: ,AR_GUEST
115: ,AR_QNODE
116: ,AR_ACTIVE
117: ,AR_INACTIVE
118: ,AR_DELETED
1.1.1.2 ! root 119: ,AR_ULS
! 120: ,AR_ULK
! 121: ,AR_ULM
! 122: ,AR_DLS
! 123: ,AR_DLK
! 124: ,AR_DLM
! 125: ,AR_HOST /* Remote/client hostname (wildcards allowed) */
! 126: ,AR_IP /* Remote/client IP address (wildcards allowed) */
1.1 root 127: };
128:
129: #endif /* Don't add anything after this line */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.