summaryrefslogtreecommitdiff
path: root/src/core/dbus-unit.h
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2015-11-13 14:12:19 +0100
committerFranck Bui <fbui@suse.com>2015-11-22 15:05:40 +0100
commit000a996dc46c187f803b67b0b0d51ad4d0bc1658 (patch)
treea3a91019b3ae6fa4926d92c9974add295c86039c /src/core/dbus-unit.h
parentcf0f970fe1c6101b45cae8277c221c10398b8e1e (diff)
Introduce bus_unit_check_load_state() helper
This function is used to check that a previous unit load succeed and returns 0 in this case. In the case the load failed, the function setup a bus error accordingly and returns -errno.
Diffstat (limited to 'src/core/dbus-unit.h')
-rw-r--r--src/core/dbus-unit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/dbus-unit.h b/src/core/dbus-unit.h
index b622e0ae8d..0d7e5f8d83 100644
--- a/src/core/dbus-unit.h
+++ b/src/core/dbus-unit.h
@@ -37,3 +37,5 @@ int bus_unit_method_reset_failed(sd_bus_message *message, void *userdata, sd_bus
int bus_unit_queue_job(sd_bus_message *message, Unit *u, JobType type, JobMode mode, bool reload_if_possible, sd_bus_error *error);
int bus_unit_set_properties(Unit *u, sd_bus_message *message, UnitSetPropertiesMode mode, bool commit, sd_bus_error *error);
int bus_unit_method_set_properties(sd_bus_message *message, void *userdata, sd_bus_error *error);
+
+int bus_unit_check_load_state(Unit *u, sd_bus_error *error);