12345678910111213141516171819202122232425262728293031323334353637 |
- /* Include these
- #include <uuid/uuid.h>
- */
- #define inb_palloc(ptr) inb_alloc(sizeof(*(ptr)))
- #define INB_FREE 1
- #define INB_NO_FREE 0
- enum inb_type { CELL = 1, SYM, REL, PUR, FRM, FLD, PRD };
- typedef struct {
- enum inb_type type;
- unsigned int flags;
- } Inb_des;
- /* /\* for networks *\/ */
- /* typedef struct { */
- /* uuid_t id; */
- /* Inb_prod *prod; */
- /* Inb_cell *nodes; */
- /* } Inb_node; */
- void *
- inb_alloc(size_t size);
- Inb_des *
- inb_des(void *ptr);
- void *
- inb_thing(Inb_des *des);
- enum inb_type
- inb_type(void *ptr);
|