des.h 537 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Include these
  2. #include <uuid/uuid.h>
  3. */
  4. #define inb_palloc(ptr) inb_alloc(sizeof(*(ptr)))
  5. #define INB_FREE 1
  6. #define INB_NO_FREE 0
  7. enum inb_type { CELL = 1, SYM, REL, PUR, FRM, FLD, PRD };
  8. typedef struct {
  9. enum inb_type type;
  10. unsigned int flags;
  11. } Inb_des;
  12. /* /\* for networks *\/ */
  13. /* typedef struct { */
  14. /* uuid_t id; */
  15. /* Inb_prod *prod; */
  16. /* Inb_cell *nodes; */
  17. /* } Inb_node; */
  18. void *
  19. inb_alloc(size_t size);
  20. Inb_des *
  21. inb_des(void *ptr);
  22. void *
  23. inb_thing(Inb_des *des);
  24. enum inb_type
  25. inb_type(void *ptr);