kvs.hrl 388 B

12345678910111213
  1. -ifndef(KVS_HRL).
  2. -define(KVS_HRL, true).
  3. -define(CONTAINER, id, top=undefined, entries_count=0).
  4. -define(ITERATOR(Container, Guard), id, container=Container, feed_id, prev, next, feeds=[], guard=Guard, etc).
  5. -define(ITERATOR(Container), ?ITERATOR(Container, false)).
  6. -record(id_seq, {thing, id}).
  7. -record(container, {?CONTAINER}).
  8. -record(iterator, {?ITERATOR(undefined)}).
  9. -endif.