Annotation of sbbs/src/sbbs3/sbbs_ini.h, revision 1.1

1.1     ! root        1: /* sbbs_ini.h */
        !             2: 
        !             3: /* Synchronet initialization (.ini) file routines */
        !             4: 
        !             5: /* $Id: sbbs_ini.h,v 1.11 2005/10/12 23:18:00 rswindell Exp $ */
        !             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:  *                                                                                                                                                     *
        !            11:  * Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html         *
        !            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 _SBBS_INI_H
        !            39: #define _SBBS_INI_H
        !            40: 
        !            41: #include "startup.h"   /* bbs_startup_t */
        !            42: #include "ftpsrvr.h"   /* ftp_startup_t */
        !            43: #include "mailsrvr.h"  /* mail_startup_t */
        !            44: #include "services.h"  /* services_startup_t */
        !            45: #include "websrvr.h"   /* services_startup_t */
        !            46: #include "ini_file.h"
        !            47: #include "scfgdefs.h"   /* scfg_t */
        !            48: 
        !            49: #if defined(__cplusplus)
        !            50: extern "C" {
        !            51: #endif
        !            52: 
        !            53: void sbbs_get_ini_fname(
        !            54:         char* ini_file
        !            55:        ,char* ctrl_dir
        !            56:        ,char* host_name
        !            57:        );
        !            58: 
        !            59: void sbbs_read_ini(
        !            60:         FILE*                                  fp
        !            61:        ,global_startup_t*              global
        !            62:        ,BOOL*                                  run_bbs
        !            63:        ,bbs_startup_t*                 bbs_startup
        !            64:        ,BOOL*                                  run_ftp
        !            65:        ,ftp_startup_t*                 ftp_startup
        !            66:        ,BOOL*                                  run_web
        !            67:        ,web_startup_t*                 web_startup
        !            68:        ,BOOL*                                  run_mail                
        !            69:        ,mail_startup_t*                mail_startup
        !            70:        ,BOOL*                                  run_services
        !            71:        ,services_startup_t*    services_startup
        !            72:        );
        !            73: 
        !            74: void sbbs_get_js_settings(
        !            75:         str_list_t list
        !            76:        ,const char* section
        !            77:        ,js_startup_t* js
        !            78:        ,js_startup_t* defaults
        !            79:        );
        !            80: 
        !            81: BOOL sbbs_set_js_settings(
        !            82:         str_list_t* list
        !            83:        ,const char* section
        !            84:        ,js_startup_t* js
        !            85:        ,js_startup_t* defaults
        !            86:        ,ini_style_t*
        !            87:        );
        !            88: 
        !            89: BOOL sbbs_write_ini(
        !            90:         FILE*                                  fp
        !            91:     ,scfg_t*                cfg
        !            92:        ,global_startup_t*              global
        !            93:        ,BOOL                                   run_bbs
        !            94:        ,bbs_startup_t*                 bbs
        !            95:        ,BOOL                                   run_ftp
        !            96:        ,ftp_startup_t*                 ftp
        !            97:        ,BOOL                                   run_web
        !            98:        ,web_startup_t*                 web
        !            99:        ,BOOL                                   run_mail                
        !           100:        ,mail_startup_t*                mail
        !           101:        ,BOOL                                   run_services
        !           102:        ,services_startup_t*    services
        !           103:        );
        !           104: 
        !           105: 
        !           106: #if defined(__cplusplus)
        !           107: }
        !           108: #endif
        !           109: 
        !           110: #endif /* Don't add anything after this line */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.