Removed const from res_get
[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.4  1994-09-06 13:02:29  quinn
8  * Removed const from res_get
9  *
10  * Revision 1.3  1994/08/18  09:43:04  adam
11  * Added res_trav. Major changes of prototypes.
12  *
13  * Revision 1.2  1994/08/18  08:22:26  adam
14  * Res.h modified. xmalloc now declares xstrdup.
15  *
16  */
17
18 #ifndef RES_H
19 #define RES_H
20
21 struct res_entry {
22     char *name;
23     char *value;
24     struct res_entry *next;
25 };
26
27 typedef struct res_struct {
28     struct res_entry *first, *last;
29     char *name;
30     int  init;
31 } *Res;
32
33 Res res_open (const char *name);
34 void res_close (Res r);
35 char *res_get (Res r, const char *name);
36 void res_put (Res r, const char *name, const char *value);
37 void res_trav (Res r, const char *prefix, 
38                void (*f)(const char *name, const char *value));
39 int res_write (Res r);
40 #endif