Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

mntd_dbus_manager.h

00001 /***************************************************************************
00002  * CVSID: $Id: mntd_dbus_manager.h,v 1.9 2004/08/29 18:43:23 stefanb Exp $
00003  *
00004  * mntd_dbus_manager.h : D-BUS manager for MNT daemon
00005  *
00006  * Copyright (C) 2004 Stefan Bambach, <sbambach@gmx.net>
00007  *
00008  * Licensed under the GNU General Public License 2.0
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 /* __MNTD_DBUS_MANAGER_H__ */

Generated on Wed Mar 30 13:43:26 2005 for Mntd by  doxygen 1.3.9.1