#pragma once #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif typedef enum { CONTROL_PLANE_LIFECYCLE_STATE_STOPPED = 0, CONTROL_PLANE_LIFECYCLE_STATE_STARTING, CONTROL_PLANE_LIFECYCLE_STATE_RUNNING, CONTROL_PLANE_LIFECYCLE_STATE_DEGRADED, CONTROL_PLANE_LIFECYCLE_STATE_STOPPING, } control_plane_lifecycle_state_t; esp_err_t control_plane_lifecycle_start(void); esp_err_t control_plane_lifecycle_stop(void); const char *control_plane_lifecycle_state_str(control_plane_lifecycle_state_t state); #ifdef __cplusplus } #endif