GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pad.h
Go to the documentation of this file.
1 
2 #ifndef _PAD_H_
3 #define _PAD_H_
4 
5 typedef struct _list
6 {
7  char *value;
8  struct _list *next;
9 } LIST;
10 
11 typedef struct _item_
12 {
13  char *name;
15  struct _item_ *next, *prev;
16 } ITEM;
17 
18 typedef struct _pad_
19 {
20  char *name;
22  struct _pad_ *next, *prev;
23 } PAD;
24 
25 PAD *pad_list(void);
26 PAD *find_pad(const char *);
27 int delete_pad(PAD *);
28 int create_pad(const char *);
29 int append_item(PAD *, const char *, const char *, int);
30 int invent_pad(char *);
31 int delete_item(PAD *, const char *);
32 ITEM *find_item(PAD *, const char *);
33 
34 #endif /* _PAD_H_ */
struct _pad_ * prev
Definition: pad.h:22
struct _item_ * prev
Definition: pad.h:15
Definition: pad.h:5
struct _pad_ * next
Definition: pad.h:22
struct _list LIST
ITEM * items
Definition: pad.h:21
struct _pad_ PAD
char * value
Definition: pad.h:7
LIST * list
Definition: pad.h:14
struct _list * next
Definition: pad.h:8
int invent_pad(char *name)
Definition: pad.c:217
ITEM * find_item(PAD *pad, const char *name)
Definition: pad.c:135
struct _item_ ITEM
char * name
Definition: pad.h:20
Definition: pad.h:11
Definition: pad.h:18
PAD * find_pad(const char *name)
Definition: pad.c:207
PAD * pad_list(void)
Definition: pad.c:146
struct _item_ * next
Definition: pad.h:15
int delete_item(PAD *pad, const char *name)
Definition: pad.c:113
char * name
Definition: pad.h:13
int delete_pad(PAD *pad)
Definition: pad.c:188
int create_pad(const char *name)
Definition: pad.c:167
int append_item(PAD *pad, const char *name, const char *value, int replace)
Definition: pad.c:70