Skip to content

Commit

Permalink
control-datatypes: add srvstate_t
Browse files Browse the repository at this point in the history
  • Loading branch information
james-knippes committed Oct 25, 2023
1 parent 3d07808 commit 4109481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/includes/control-datatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace dinit_cptypes {
using srvname_len_t = uint16_t;
using envvar_len_t = uint16_t;
using sig_num_t = int32_t;
using srvstate_t = uint8_t;
} // namespace dinit_cptypes

#endif
4 changes: 3 additions & 1 deletion src/includes/service-constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

#include <mconfig.h>

#include "control-datatypes.h"

/* Service states */
enum class service_state_t {
enum class service_state_t :dinit_cptypes::srvstate_t {
STOPPED, // service is not running.
STARTING, // service is starting, and will start (or fail to start) in time.
STARTED, // service is running,
Expand Down

0 comments on commit 4109481

Please sign in to comment.