control-datatypes.h 550 B

1234567891011121314151617181920
  1. #ifndef DINIT_CONTROL_DATATYPES_H
  2. #define DINIT_CONTROL_DATATYPES_H
  3. #include <cstdint>
  4. namespace dinit_cptypes {
  5. // A mapping between service records and their associated numerical identifier
  6. // used in communction
  7. using handle_t = uint32_t;
  8. using trigger_val_t = uint8_t;
  9. using cp_cmd_t = uint8_t;
  10. using cp_rply_t = uint8_t;
  11. using cp_info_t = uint8_t;
  12. using srvname_len_t = uint16_t;
  13. using envvar_len_t = uint16_t;
  14. using sig_num_t = int;
  15. using srvstate_t = uint8_t;
  16. } // namespace dinit_cptypes
  17. #endif