00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __MNTD_DBUS_MANAGER_H__
00027 #define __MNTD_DBUS_MANAGER_H__
00028
00029
00030 #include <dbus/dbus.h>
00031 #include <dbus/dbus-glib.h>
00032
00033 #include "mntd_volume_manager_types.h"
00034 #include "mntd_volume_types.h"
00035
00036
00037 #if defined(__cplusplus)
00038 extern "C" {
00039 #endif
00040
00041 #define DBUS_INTERFACE_UDEV "org.kernel.udev.NodeMonitor"
00042 #define DBUS_PATH_UDEV "/org/kernel/udev/NodeMonitor"
00043
00044 DBusHandlerResult mntd_dbus_manager_filter_function(
00045 DBusConnection* connection,
00046 DBusMessage* message,
00047 void* user_data);
00048 int mntd_dbus_init(void *data);
00049 int mntd_dbus_quit(void);
00050 void mntd_dbus_raise_no_such_device(DBusConnection* connection,
00051 DBusMessage* in_reply_to,
00052 const char* udi);
00053 void mntd_dbus_raise_syntax(DBusConnection* connection,
00054 DBusMessage* in_reply_to,
00055 const char* method_name);
00056 void mntd_dbus_raise_no_mntpnt(DBusConnection* connection,
00057 DBusMessage* in_reply_to,
00058 const char* udi);
00059 void mntd_dbus_manager_send_signal_volume_mounted(PVOLUME pv);
00060 void mntd_dbus_manager_send_signal_volume_unmounted(PVOLUME pv);
00061 DBusHandlerResult mntd_dbus_manager_get_all_volumes( PVOLUMEMANAGER pvm,
00062 DBusConnection* connection,
00063 DBusMessage* message);
00064 DBusHandlerResult mntd_dbus_manager_get_mntpnt( PVOLUMEMANAGER pvm,
00065 DBusConnection* connection,
00066 DBusMessage* message);
00067 DBusHandlerResult mntd_dbus_manager_remount( PVOLUMEMANAGER pvm,
00068 DBusConnection* connection,
00069 DBusMessage* message);
00070
00071
00072 #if defined(__cplusplus)
00073 }
00074 #endif
00075
00076 #endif