3 [DBus (name = "org.freedesktop.systemd1")]
4 public interface Manager : DBus.Object {
6 public struct UnitInfo {
17 public struct JobInfo {
26 public abstract UnitInfo[] list_units() throws DBus.Error;
27 public abstract JobInfo[] list_jobs() throws DBus.Error;
29 public abstract ObjectPath get_unit(string name) throws DBus.Error;
30 public abstract ObjectPath load_unit(string name) throws DBus.Error;
31 public abstract ObjectPath get_job(uint32 id) throws DBus.Error;
33 public abstract void clear_jobs() throws DBus.Error;
36 [DBus (name = "org.freedesktop.systemd1.Unit")]
37 public interface Unit : DBus.Object {
38 public abstract string id { owned get; }
39 public abstract string description { owned get; }
40 public abstract string load_state { owned get; }
41 public abstract string active_state { owned get; }
42 public abstract string load_path { owned get; }
43 public abstract uint64 active_enter_timestamp { owned get; }
44 public abstract uint64 active_exit_timestamp { owned get; }
45 public abstract bool can_reload { owned get; }
46 public abstract bool can_start { owned get; }
48 public abstract ObjectPath start(string mode) throws DBus.Error;
49 public abstract ObjectPath stop(string mode) throws DBus.Error;
50 public abstract ObjectPath restart(string mode) throws DBus.Error;
51 public abstract ObjectPath reload(string mode) throws DBus.Error;
54 [DBus (name = "org.freedesktop.systemd1.Job")]
55 public interface Job : DBus.Object {
56 public abstract uint32 id { owned get; }
57 public abstract string state { owned get; }
58 public abstract string job_type { owned get; }
60 public abstract void cancel() throws DBus.Error;