api.hrl 764 B

12345678910111213141516171819
  1. -ifndef(API_HRL).
  2. -define(API_HRL, true).
  3. -define(API,[start/0,stop/0,leave/0,leave/1,destroy/0,feed/2,
  4. join/0,join/1,modules/0,cursors/0,get/2,get/3,put/1,put/2,index/3,delete/2,
  5. table/1,tables/0,dir/0,initialize/2,seq/2,all/1,all/2,count/1,ver/0]).
  6. -include("metainfo.hrl").
  7. -spec seq(atom() | [], integer() | []) -> term().
  8. -spec count(atom()) -> integer().
  9. -spec dir() -> list({'table',atom()}).
  10. -spec ver() -> {'version',string()}.
  11. -spec leave() -> ok.
  12. -spec destroy() -> ok.
  13. -spec join() -> ok | {error,any()}.
  14. -spec join(Node :: string()) -> [{atom(),any()}].
  15. -spec modules() -> list(atom()).
  16. -spec cursors() -> list({atom(),list(atom())}).
  17. -spec tables() -> list(#table{}).
  18. -spec table(Tab :: atom()) -> #table{} | false.
  19. -endif.