diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2008-10-24 07:58:00 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-24 07:58:00 -0400 |
commit | 054a931b01f98cf94b42f1ff1f48fbcb4928c869 (patch) | |
tree | bc5555e5e64145320693d5a26d709e3aa6a6ab41 /server/monitor.h | |
parent | c6fd412c0dd03782aa28c20f90bde0e22f720e7b (diff) | |
download | sssd-054a931b01f98cf94b42f1ff1f48fbcb4928c869.tar.gz sssd-054a931b01f98cf94b42f1ff1f48fbcb4928c869.tar.bz2 sssd-054a931b01f98cf94b42f1ff1f48fbcb4928c869.zip |
Integrate D-BUS support for use as IPC between parts.
Integrates DBUS with the event system so that it is asynchronous.
Diffstat (limited to 'server/monitor.h')
-rw-r--r-- | server/monitor.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/server/monitor.h b/server/monitor.h index 17094a85..074c5a81 100644 --- a/server/monitor.h +++ b/server/monitor.h @@ -1,3 +1,30 @@ +#ifndef MONITOR_H_ +#define MONITOR_H_ + +#include "talloc.h" +#include "service_task.h" +#include "dbus/dbus.h" + +#define MONITOR_VERSION "0.1" +#define MONITOR_DBUS_INTERFACE "org.freeipa.sssd.monitor" +#define MONITOR_DBUS_PATH "/org/freeipa/sssd/monitor" + +/* D-BUS Methods */ +#define MONITOR_METHOD_VERSION "getVersion" + +struct mt_ctx { + struct event_context *ev; + struct confdb_ctx *cdb; + char **services; +}; + int start_monitor(TALLOC_CTX *mem_ctx, struct event_context *event_ctx, struct confdb_ctx *cdb); +int monitor_dbus_init(struct event_context *event_ctx); +void monitor_dbus_method_init(DBusConnection *conn, struct event_context *event_ctx); +DBusHandlerResult monitor_message_handler(DBusConnection *conn, + DBusMessage *message, void *user_data); +DBusMessage *dbus_get_monitor_version(DBusMessage *message); + +#endif /* MONITOR_H */ |