Added res_trav. Major changes of prototypes.
[idzebra-moved-to-github.git] / include / res.h
1 /*
2  * Copyright (C) 1994, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: res.h,v $
7  * Revision 1.3  1994-08-18 09:43:04  adam
8  * Added res_trav. Major changes of prototypes.
9  *
10  * Revision 1.2  1994/08/18  08:22:26  adam
11  * Res.h modified. xmalloc now declares xstrdup.
12  *
13  */
14
15 #ifndef RES_H
16 #define RES_H
17
18 struct res_entry {
19     char *name;
20     char *value;
21     struct res_entry *next;
22 };
23
24 typedef struct res_struct {
25     struct res_entry *first, *last;
26     char *name;
27     int  init;
28 } *Res;
29
30 Res res_open (const char *name);
31 void res_close (Res r);
32 const char *res_get (Res r, const char *name);
33 void res_put (Res r, const char *name, const char *value);
34 void res_trav (Res r, const char *prefix, 
35                void (*f)(const char *name, const char *value));
36 int res_write (Res r);
37 #endif