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

mntd_volume_config.h

00001 /***************************************************************************
00002  * CVSID: $Id: mntd_volume_config.h,v 1.13 2004/12/18 23:38:53 stefanb Exp $
00003  *
00004  * mntd_volume_config.h : Config file parser based on expat
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_VOLUME_CONFIG_H__
00027 #define __MNTD_VOLUME_CONFIG_H__
00028 
00029 
00030 #include <glib.h>
00031 
00032 #include "mntd_volume_manager.h"
00033 
00034 
00035 #if defined(__cplusplus)
00036 extern "C" {
00037 #endif
00038 
00039     
00041 #define SLEEP_MILLIS_DEFAULT 1000
00042     
00043 
00045 enum
00046 {
00048     UMOUNT_ON_EXIT_TRUE = 0,
00049     
00051     UMOUNT_ON_EXIT_FALSE = 1,
00052     
00054     UMOUNT_ON_EXIT_READONLY = 2,
00055     
00056 };
00057 
00058 
00061 typedef struct
00062 {
00064     char *mountpath;
00065     
00067     char *mountprefix;
00068     
00070     char *user;
00071     
00073     char *group;
00074     
00076     char *wdir;
00077     
00079     char *pidfile;
00080     
00082     GHashTable *filesystems;
00083     
00085     int dbus_reconnect;
00086     
00088     int sleep_millis;
00089     
00091     int loglevel;
00092     
00094     int umount_on_exit;
00095     
00097     char *absfilepath;
00098     
00099 } ConfigData;
00100 
00101 
00102 ConfigData *mntd_volume_config_parse(char *config, char *pidfile);
00103 int mntd_volume_config_free(ConfigData **cfg);
00104 int mntd_volume_config_reload(ConfigData **cfg, char *pidfile);
00105 
00106 
00107 #if defined(__cplusplus)
00108 }
00109 #endif
00110 
00111 #endif /* __MNTD_VOLUME_CONFIG_H__ */

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