Relocate global sm variable to reduce include file deps

The new state machine handling is not necessary to export to external
plugins, so this patch reduces the exposure of the global variable sm

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-06-04 23:10:47 +02:00
1 parent e9da876a10
commit ea21bfc4c9
4 files changed
+4 -4

No files matched your search

+2
View File
@@ -40,6 +40,8 @@ typedef struct sm {
int in_teardown; /* Set when waiting for all processes to be halted */
} sm_t;
extern sm_t sm;
void sm_init(sm_t *sm);
void sm_step(sm_t *sm);
void sm_set_runlevel(sm_t *sm, int newlevel);