summaryrefslogtreecommitdiff
path: root/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'target.h')
-rw-r--r--target.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/target.h b/target.h
index 6ee9f22013..4b04635f94 100644
--- a/target.h
+++ b/target.h
@@ -29,7 +29,8 @@ typedef struct Target Target;
typedef enum TargetState {
TARGET_DEAD,
TARGET_ACTIVE,
- _TARGET_STATE_MAX
+ _TARGET_STATE_MAX,
+ _TARGET_STATE_INVALID = -1
} TargetState;
struct Target {
@@ -40,4 +41,6 @@ struct Target {
extern const UnitVTable target_vtable;
+int target_get_runlevel(Target *t);
+
#endif