calacirya

view src/attr.h @ 0:df9e0bc7685a

starting calacirya project
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 18 Sep 2011 11:46:55 +0300
parents
children
line source
1 #ifndef ATTR_H_
2 #define ATTR_H_
4 #include <anim.h>
6 struct attribute {
7 struct anm_node *node;
8 char *name;
10 struct attribute *left, *right;
11 };
14 struct attrdb {
15 struct attribute *root;
16 };
18 struct attribute *create_attrib(const char *name);
19 void free_attrib(struct attribute *attr);
21 struct attrdb *create_attrdb(void);
22 void free_attrib(struct attrdb *db);
24 void add_attrib(struct attrdb *db, struct attribute *attr);
25 struct attribute *find_attrib(struct attrdb *db, const char *name);
27 #endif /* ATTR_H_ */