/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foounitnamehfoo
-#define foounitnamehfoo
+#pragma once
/***
This file is part of systemd.
};
enum UnitLoadState {
- UNIT_STUB,
+ UNIT_STUB = 0,
UNIT_LOADED,
UNIT_ERROR,
UNIT_MERGED,
_UNIT_LOAD_STATE_INVALID = -1
};
+extern const char* const unit_type_table[];
const char *unit_type_to_string(UnitType i);
UnitType unit_type_from_string(const char *s);
+extern const char* const unit_load_state_table[];
const char *unit_load_state_to_string(UnitLoadState i);
UnitLoadState unit_load_state_from_string(const char *s);
char *unit_name_path_unescape(const char *f);
bool unit_name_is_template(const char *n);
+bool unit_name_is_instance(const char *n);
char *unit_name_replace_instance(const char *f, const char *i);
char *unit_dbus_path_from_name(const char *name);
char *unit_name_mangle(const char *name);
-
-#endif
+char *snapshot_name_mangle(const char *name);