~ubuntu-branches/debian/sid/grip/sid

« back to all changes in this revision

Viewing changes to src/parsecfg.h

  • Committer: Package Import Robot
  • Author(s): Tiago Ilieve
  • Date: 2016-04-04 14:26:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20160404142623-zw16rooy7z3xadvu
Tags: 4.1.0-1
Initial release (Closes: #790611)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* parsecfg.h
2
 
 *
3
 
 * Copyright (c) 1998-2002  Mike Oliphant <oliphant@gtk.org>
4
 
 *
5
 
 *   http://www.nostatic.org/grip
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or 
8
 
 * modify it under the terms of the GNU General Public License as 
9
 
 * published by the Free Software Foundation; either version 2 of the
10
 
 * License, or (at your option) any later version.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
 
 * USA
21
 
 */
22
 
 
23
 
/* Config entry types */
24
 
 
25
 
typedef enum
26
 
{
27
 
  CFG_ENTRY_STRING,
28
 
  CFG_ENTRY_BOOL,
29
 
  CFG_ENTRY_INT,
30
 
  CFG_ENTRY_LAST
31
 
} CFGEntryType;
32
 
 
33
 
typedef struct _cfg_entry
34
 
{
35
 
  char name[80];
36
 
  CFGEntryType type;
37
 
  int length;
38
 
  void *destvar;
39
 
} CFGEntry;
40
 
 
41
 
 
42
 
int LoadConfig(char *filename,char *name,int ver,int reqver,
43
 
               CFGEntry *cfg);
44
 
gboolean SaveConfig(char *filename,char *name,int ver,CFGEntry *cfg);