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

main.h

00001 /***************************************************************************
00002  * CVSID: $Id: main.h,v 1.8 2004/08/03 19:23:50 stefanb Exp $
00003  *
00004  * main.h : main() 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_MAIN_H__
00027 #define __MNTD_MAIN_H__
00028 
00029 #include <dbus/dbus.h>
00030 
00031 #include "mntd_volume_manager.h"
00032 #include "mntd_volume_config.h"
00033 
00034 #if defined(__cplusplus)
00035 extern "C" {
00036 #endif
00037 
00038 
00040 enum
00041 {
00043     QUIT_NOT_CONNECTED = 0,
00044     
00046     QUIT_NORMAL = 1,
00047     
00049     QUIT_RELOAD = 2,
00050     
00052     QUIT_DISCONNECTED = 3,
00053     
00054 };
00055 
00056 
00057 
00062 typedef void (*MntdDbusDisconnect)(void *user_data);
00063 
00064 
00068 typedef struct MNTDDATA_
00069 {
00071     ConfigData *configdata;
00072 
00074     PVOLUMEMANAGER vols;
00075     
00077     GMainLoop* loop;
00078 
00080     MntdDbusDisconnect disconnect;
00081     
00083     int quit_reason;
00084     
00085 } MNTDDATA, *PMNTDDATA;
00086 
00087 
00088 extern PMNTDDATA pmd;
00089 
00090 
00091 #if defined(__cplusplus)
00092 }
00093 #endif
00094 
00095 #endif /* __MNTD_MAIN_H__ */

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