diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-10-24 19:09:44 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-27 10:02:38 -0400 |
commit | 6fe2bfce9fb9bb1564be8257cccc52bcec589de4 (patch) | |
tree | 1b9e603f7b08f8697b443e94a0e358b4fb00f07c /server/monitor.h | |
parent | 054a931b01f98cf94b42f1ff1f48fbcb4928c869 (diff) | |
download | sssd-6fe2bfce9fb9bb1564be8257cccc52bcec589de4.tar.gz sssd-6fe2bfce9fb9bb1564be8257cccc52bcec589de4.tar.bz2 sssd-6fe2bfce9fb9bb1564be8257cccc52bcec589de4.zip |
D-BUS integration style changes.
Rework interfaces a bit to simplify and uniform function names so that they
use a well defined namespace (sssd_*).
Simplify headers file, split them into a private and a public one only.
Make static all file private functions.
Rename sssd_dbus_client.c to sssd_dbus_connection.c to reflect it's function,
as it is is used by both a server and a client.
Introduce a function table to know where to dipatch messages.
Fix coding style issues, and start pointing out where clean-up fucntions
are missing.
Diffstat (limited to 'server/monitor.h')
-rw-r--r-- | server/monitor.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/server/monitor.h b/server/monitor.h index 074c5a81..8d9e026d 100644 --- a/server/monitor.h +++ b/server/monitor.h @@ -1,9 +1,5 @@ -#ifndef MONITOR_H_ -#define MONITOR_H_ - -#include "talloc.h" -#include "service_task.h" -#include "dbus/dbus.h" +#ifndef _MONITOR_H_ +#define _MONITOR_H_ #define MONITOR_VERSION "0.1" #define MONITOR_DBUS_INTERFACE "org.freeipa.sssd.monitor" @@ -12,19 +8,8 @@ /* 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 */ +#endif /* _MONITOR_H */ |