vici.h 450 B

123456789101112131415161718192021222324
  1. enum vici_type_t {
  2. VICI_START = 0,
  3. VICI_SECTION_START = 1,
  4. VICI_SECTION_END = 2,
  5. VICI_KEY_VALUE = 3,
  6. VICI_LIST_START = 4,
  7. VICI_LIST_ITEM = 5,
  8. VICI_LIST_END = 6,
  9. VICI_END = 7
  10. };
  11. enum vici_operation_t {
  12. VICI_CMD_REQUEST = 0,
  13. VICI_CMD_RESPONSE,
  14. VICI_CMD_UNKNOWN,
  15. VICI_EVENT_REGISTER,
  16. VICI_EVENT_UNREGISTER,
  17. VICI_EVENT_CONFIRM,
  18. VICI_EVENT_UNKNOWN,
  19. VICI_EVENT,
  20. };
  21. #define VICI_MAX_MSGLEN (512*1024)