#ifndef CONTROLLER_ENUMS_H #define CONTROLLER_ENUMS_H enum poll_fgs { POLL_FDS_DISCOVERY, POLL_FDS_COMMAND }; enum discovery_mapping { DISCOVERY_MAPPING_ID = 0, DISCOVERY_MAPPING_NAME = 1, DISCOVERY_MAPPING_COMMAND_PORT = 2, DISCOVERY_MAPPING_RELAY_COUNT = 3, }; enum control_mapping { COMMAND_MAPPING_CODE = 0, COMMAND_MAPPING_NAME = 1, COMMAND_MAPPING_RELAY_NUM = 2, COMMAND_MAPPING_SCHEDULE_ID = 3, COMMAND_MAPPING_PERIODS_COUNT = 4, COMMAND_MAPPING_PERIODS_BLOB = 5, }; enum command_code { COMMAND_CODE_GET_TIME = 1, COMMAND_CODE_GET_ID = 2, COMMAND_CODE_SET_NAME = 100, COMMAND_CODE_GET_NAME = 101, COMMAND_CODE_SET_SCHEDULE = 102, COMMAND_CODE_GET_SCHEDULE = 103, COMMAND_CODE_SET_RELAY_NAME = 104, COMMAND_CODE_GET_RELAY_NAME = 105, }; #endif /* CONTROLLER_ENUMS_H */