diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-09-28 12:52:36 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-09-28 12:52:36 +0000 |
commit | 36c0bad1fa4d61860a9cb4688759a49fa22cde67 (patch) | |
tree | 44f4c1dcb29c5fa37a46aa2eb76bdeadedf06647 /src/plugin.h | |
parent | 1ed8ad88617b996a1dc37deddd2f44dd36adf4af (diff) | |
download | mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar.gz mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar.bz2 mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.tar.xz mandi-36c0bad1fa4d61860a9cb4688759a49fa22cde67.zip |
Diffstat (limited to 'src/plugin.h')
-rw-r--r-- | src/plugin.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/plugin.h b/src/plugin.h new file mode 100644 index 0000000..ad3973a --- /dev/null +++ b/src/plugin.h @@ -0,0 +1,21 @@ +#ifndef PLUGIN_H +#define PLUGIN_H + +#include <dbus/dbus.h> + +#define PLUGIN_ROOT_INTF "com.mandriva.monitoring" +#define PLUGIN_ROOT_PATH "/com/mandriva/monitoring" + +typedef struct plugin_s plugin_t; +struct plugin_s { + const char *name; + const char *path; + int fd; + void *priv; + int (*init)(plugin_t *plugin, DBusConnection *connection); + void (*handle_incoming)(plugin_t *plugin, DBusConnection *connection); + DBusHandlerResult (*handle_message)(DBusConnection *connection, DBusMessage *message, plugin_t *plugin); + void (*deinit)(plugin_t *plugin, DBusConnection *connection); +}; + +#endif /* PLUGIN_H */ |