X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=dbus.h;h=1e71971f0557ce753fe851d154cac48cae34146c;hp=6a769c9167a90011307926eda3b7d926efd0c1f9;hb=4a21885b43c3632db95d6d1d9ba327ccff705b7b;hpb=ea4309869e75497ba6a97c540646cb66a157a4d9 diff --git a/dbus.h b/dbus.h index 6a769c916..1e71971f0 100644 --- a/dbus.h +++ b/dbus.h @@ -3,6 +3,25 @@ #ifndef foodbushfoo #define foodbushfoo +/*** + This file is part of systemd. + + Copyright 2010 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with systemd; If not, see . +***/ + #include #include "manager.h" @@ -37,10 +56,12 @@ typedef struct BusProperty { " " \ " " -int bus_init(Manager *m); -void bus_done(Manager *m); +int bus_init_system(Manager *m); +int bus_init_api(Manager *m); +void bus_done_system(Manager *m); +void bus_done_api(Manager *m); -void bus_dispatch(Manager *m); +unsigned bus_dispatch(Manager *m); void bus_watch_event(Manager *m, Watch *w, int events); void bus_timeout_event(Manager *m, Watch *w, int events); @@ -52,9 +73,17 @@ DBusHandlerResult bus_send_error_reply(Manager *m, DBusMessage *message, DBusErr int bus_property_append_string(Manager *m, DBusMessageIter *i, const char *property, void *data); int bus_property_append_strv(Manager *m, DBusMessageIter *i, const char *property, void *data); int bus_property_append_bool(Manager *m, DBusMessageIter *i, const char *property, void *data); +int bus_property_append_uint32(Manager *m, DBusMessageIter *i, const char *property, void *data); +int bus_property_append_uint64(Manager *m, DBusMessageIter *i, const char *property, void *data); extern const DBusObjectPathVTable bus_manager_vtable; extern const DBusObjectPathVTable bus_job_vtable; extern const DBusObjectPathVTable bus_unit_vtable; +void bus_unit_send_change_signal(Unit *u); +void bus_unit_send_removed_signal(Unit *u); + +void bus_job_send_change_signal(Job *j); +void bus_job_send_removed_signal(Job *j); + #endif