- public abstract UnitInfo[] list_units() throws DBus.Error;
- public abstract JobInfo[] list_jobs() throws DBus.Error;
+ public abstract UnitInfo[] list_units() throws IOError;
+ public abstract JobInfo[] list_jobs() throws IOError;
+
+ public abstract ObjectPath get_unit(string name) throws IOError;
+ public abstract ObjectPath get_unit_by_pid(uint32 pid) throws IOError;
+ public abstract ObjectPath load_unit(string name) throws IOError;
+ public abstract ObjectPath get_job(uint32 id) throws IOError;
+
+ public abstract ObjectPath start_unit(string name, string mode = "replace") throws IOError;
+ public abstract ObjectPath stop_unit(string name, string mode = "replace") throws IOError;
+ public abstract ObjectPath reload_unit(string name, string mode = "replace") throws IOError;
+ public abstract ObjectPath restart_unit(string name, string mode = "replace") throws IOError;
+ public abstract ObjectPath try_restart_unit(string name, string mode = "replace") throws IOError;
+ public abstract ObjectPath reload_or_restart_unit(string name, string mode = "replace") throws IOError;
+ public abstract ObjectPath reload_or_try_restart_unit(string name, string mode = "replace") throws IOError;