scfg.h 3.34 KB
Newer Older
1
/* scfg.h */
rswindell's avatar
rswindell committed
2

3
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
31
32
33
34
/* $Id$ */

/****************************************************************************
 * @format.tab-size 4		(Plain Text/Source Code File Header)			*
 * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
 *																			*
 * Copyright 2002 Rob Swindell - http://www.synchro.net/copyright.html		*
 *																			*
 * This program is free software; you can redistribute it and/or			*
 * modify it under the terms of the GNU General Public License				*
 * as published by the Free Software Foundation; either version 2			*
 * of the License, or (at your option) any later version.					*
 * See the GNU General Public License for more details: gpl.txt or			*
 * http://www.fsf.org/copyleft/gpl.html										*
 *																			*
 * Anonymous FTP access to the most recent released source is available at	*
 * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net	*
 *																			*
 * Anonymous CVS access to the development source and modification history	*
 * is available at cvs.synchro.net:/cvsroot/sbbs, example:					*
 * cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs login			*
 *     (just hit return, no password is necessary)							*
 * cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs checkout src		*
 *																			*
 * For Synchronet coding style and modification guidelines, see				*
 * http://www.synchro.net/source.html										*
 *																			*
 * You are encouraged to submit any modifications (preferably in Unix diff	*
 * format) via e-mail to mods@synchro.net									*
 *																			*
 * Note: If this box doesn't appear square, then you need to fix your tabs.	*
 ****************************************************************************/
rswindell's avatar
rswindell committed
35
36
37
38

#include <stdio.h>
#include <stdlib.h>

39
#include "uifc.h"
rswindell's avatar
rswindell committed
40
41
42
43
44
45
#include "sbbs.h"

/**********/
/* Macros */
/**********/

46
47
#define SETHELP(where)  uifc.sethelp(where)

rswindell's avatar
rswindell committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*************/
/* Constants */
/*************/

#define SUB_HDRMOD	(1L<<31)		/* Modified sub-board header info */

/************/
/* Typedefs */
/************/

/********************/
/* Global Variables */
/********************/
extern scfg_t cfg;
62
extern uifcapi_t uifc;
rswindell's avatar
rswindell committed
63
64
65
extern char item;
extern char **opt;
extern char tmp[256];
66
extern char error[256];
rswindell's avatar
rswindell committed
67
68
69
extern char *nulstr;
extern char *invalid_code,*num_flags;
extern int	backup_level;
70
extern BOOL new_install;
rswindell's avatar
rswindell committed
71
72
73
74
75
76
77

/***********************/
/* Function Prototypes */
/***********************/

void bail(int code);
void errormsg(int line, char *source,  char action, char *object, ulong access);
rswindell's avatar
rswindell committed
78
void clearptrs(int subnum);
rswindell's avatar
rswindell committed
79
int  save_changes(int mode);
rswindell's avatar
rswindell committed
80
81
void node_menu(void);
void node_cfg(void);
rswindell's avatar
rswindell committed
82
void results(int i);
rswindell's avatar
rswindell committed
83
84
85
86
void sys_cfg(void);
void net_cfg(void);
void msgs_cfg(void);
void msg_opts(void);
rswindell's avatar
rswindell committed
87
void sub_cfg(uint grpnum);
rswindell's avatar
rswindell committed
88
89
90
void xfer_cfg(void);
void xfer_opts(void);
void libs_cfg(void);
rswindell's avatar
rswindell committed
91
void dir_cfg(uint libnum);
rswindell's avatar
rswindell committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
void xprogs_cfg(void);
void fevents_cfg(void);
void tevents_cfg(void);
void xtrn_cfg(uint section);
void swap_cfg(void);
void xtrnsec_cfg(void);
int  natvpgm_cfg(void);
void page_cfg(void);
void xedit_cfg(void);
void txt_cfg(void);
void shell_cfg(void);
void init_mdms(void);
void guru_cfg(void);
void actsets_cfg(void);
void chan_cfg(void);
rswindell's avatar
rswindell committed
107
108
void mdm_cfg(int mdmnum);
int export_mdm(char *fname);
109
int code_ok(char *str);
rswindell's avatar
rswindell committed
110
111
112
113
114
int  bits(long l);
void getar(char *desc, char *ar);

/* scfgnet.h */
faddr_t atofaddr(char *str);