"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "petidomo-4.0b6/libconfigfile/configfile.h" of archive petidomo-4.0b6.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 /*
2 $Source: /e/ossp/cvs/ossp-pkg/petidomo/libconfigfile/configfile.h,v $
3 $Revision: 1.3 $
4
5 Copyright (C) 2000 by CyberSolutions GmbH, Germany.
6
7 This file is part of OpenPetidomo.
8
9 OpenPetidomo is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 OpenPetidomo is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with OpenPetidomo; see the file COPYING. If not, write to
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
23 */
24
25 #ifndef __LIB_CONFIGFILE_H__
26 #define __LIB_CONFIGFILE_H__ 1
27
28 #include <stdlib.h>
29 #ifdef DEBUG_DMALLOC
30 # include <dmalloc.h>
31 #endif
32
33 /********** Prototypes **********/
34
35 struct ConfigFile {
36 char * keyword;
37 int type;
38 void * data;
39 };
40 enum {
41 CF_STRING,
42 CF_INTEGER,
43 CF_YES_NO,
44 CF_MULTI
45 };
46
47 int ReadConfig(const char * filename, struct ConfigFile cf[]);
48 void FreeConfig(const char *);
49 void FreeAllConfigs(void);
50 char * GetConfig(const char * filename, char * keyword);
51 int SetConfig(const char * filename, char * keyword, const char * data);
52
53 #endif /* !defined(__LIB_CONFIGFILE_H__) */