Annotation of freem/src/iniconf.h, revision 1.5

1.1       snw         1: /*
1.5     ! snw         2:  *   $Id: iniconf.h,v 1.4 2025/04/02 19:59:38 snw Exp $
1.1       snw         3:  *    Function prototypes, structs, and macros for reading
                      4:  *    FreeM configuration files
                      5:  *
                      6:  *  
1.2       snw         7:  *   Author: Serena Willis <snw@coherent-logic.com>
1.1       snw         8:  *    Copyright (C) 1998 MUG Deutschland
1.3       snw         9:  *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
1.1       snw        10:  *
                     11:  *
                     12:  *   This file is part of FreeM.
                     13:  *
                     14:  *   FreeM is free software: you can redistribute it and/or modify
                     15:  *   it under the terms of the GNU Affero Public License as published by
                     16:  *   the Free Software Foundation, either version 3 of the License, or
                     17:  *   (at your option) any later version.
                     18:  *
                     19:  *   FreeM is distributed in the hope that it will be useful,
                     20:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                     21:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     22:  *   GNU Affero Public License for more details.
                     23:  *
                     24:  *   You should have received a copy of the GNU Affero Public License
                     25:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
                     26:  *
1.4       snw        27:  *   $Log: iniconf.h,v $
1.5     ! snw        28:  *   Revision 1.4  2025/04/02 19:59:38  snw
        !            29:  *   Automatically modify env.conf from fmadm reconfigure
        !            30:  *
1.4       snw        31:  *   Revision 1.3  2025/03/09 19:14:25  snw
                     32:  *   First phase of REUSE compliance and header reformat
                     33:  *
1.3       snw        34:  *
                     35:  * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
                     36:  * SPDX-License-Identifier: AGPL-3.0-or-later
1.1       snw        37:  **/
                     38: 
                     39: #ifndef _CONFIG_H
                     40:  #define _CONFIG_H
                     41: 
                     42: #define CONF_BUFSIZE 255
                     43: 
                     44: 
                     45: extern int get_conf(char *section, char *key, char *value);
                     46: extern int file_exists(char *filename);
                     47: extern void write_profile_string(char *file, char *section, char *key, char *value);
1.4       snw        48: extern int modify_profile_string(char *file, char *section, char *key, char *value);
                     49: extern int read_profile_string(char *file, char *section, char *key, char *value);
1.1       snw        50: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>