slot.h 700 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _RVC_SLOT_H
  2. #define _RVC_SLOT_H
  3. #pragma once
  4. #include <stdio.h>
  5. #ifndef RVC_SLOT_MAX_NUM
  6. #define RVC_SLOT_MAX_NUM 16
  7. #endif
  8. typedef struct rvc_slotvar_s {
  9. char* strName;
  10. char* strValue;
  11. }rvc_slotvar_t;
  12. typedef struct rvc_slotfilter_s {
  13. char* strLogType;
  14. char* strEntity;
  15. char* strSeverityLevel;
  16. char* strSysError;
  17. char* strUserCode;
  18. char* strContentToVar;
  19. }rvc_slotfilter_t;
  20. typedef struct rvc_slotreset_s {
  21. char* strSource;
  22. }rvc_slotreset_t;
  23. typedef struct rvc_slot_s {
  24. char* strCode;
  25. char* strTimeout;
  26. char* strOneTrigger;
  27. rvc_slotvar_t Vars[RVC_SLOT_MAX_NUM];
  28. rvc_slotfilter_t Filters[RVC_SLOT_MAX_NUM];
  29. rvc_slotreset_t Reset[RVC_SLOT_MAX_NUM];
  30. }rvc_slot_t;
  31. #endif