universe.h (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
typedef unsigned int unit; typedef struct Atom Atom; struct Atom { char name[16]; char value[64]; Atom* next; }; typedef struct Universe { Atom* atoms[256]; } Universe; Universe* create_universe(); Universe* parse_universe(char* cart, char* realm_name); void save_universe(char* cart, Universe* self, char* realm_name); void set_atom(Universe* self, Atom* atom); Atom* get_atom(Universe* self, char* name); void remove_atom(Universe* self, char* name); void destroy_universe(Universe* self); |