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.6 2004/05/23 00:00:37 stefanb Exp $
00003  *
00004  * mntd_dbus_manager.h : D-BUS manager for MNT daemon
00005  *
00006  * Copyright (C) 2004 Stefan Bambach, <stefan@bambach.biz>
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 
00042 DBusHandlerResult mntd_dbus_manager_filter_function(
00043                                                 DBusConnection* connection,
00044                                                 DBusMessage* message,
00045                                                 void* user_data);
00046 int mntd_dbus_init(void *data);
00047 int mntd_dbus_quit(void);
00048 void mntd_dbus_raise_no_such_device(DBusConnection* connection,
00049                                             DBusMessage* in_reply_to,
00050                                             const char* udi);
00051 void mntd_dbus_raise_syntax(DBusConnection* connection,
00052                                             DBusMessage* in_reply_to,
00053                                             const char* method_name);
00054 void mntd_dbus_raise_no_mntpnt(DBusConnection* connection,
00055                                             DBusMessage* in_reply_to,
00056                                             const char* udi);
00057 void mntd_dbus_manager_send_signal_volume_mounted(PVOLUME pv);
00058 void mntd_dbus_manager_send_signal_volume_unmounted(PVOLUME pv);
00059 DBusHandlerResult mntd_dbus_manager_get_all_volumes(    PVOLUMEMANAGER pvm,
00060                                                                         DBusConnection* connection,
00061                                                                         DBusMessage* message);
00062 DBusHandlerResult mntd_dbus_manager_get_mntpnt( PVOLUMEMANAGER pvm,
00063                                                 DBusConnection* connection,
00064                                                 DBusMessage* message);
00065 
00066     
00067 #if defined(__cplusplus)
00068 }
00069 #endif
00070 
00071 #endif /* __MNTD_DBUS_MANAGER_H__ */

Generated on Thu May 27 23:27:28 2004 for Mntd by doxygen 1.3.5