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

mntd_mount.h

00001 /***************************************************************************
00002  * CVSID: $Id: mntd_mount.h,v 1.9 2004/07/11 17:39:33 stefanb Exp $
00003  *
00004  * mntd_mount.h : Mount helper 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_MOUNT_H__
00027 #define __MNTD_MOUNT_H__
00028 
00029 
00030 #include <stdio.h>
00031 #include <mntent.h>
00032 #include <glib.h>
00033 
00034 #include "mntd_volume_config.h"
00035 
00036 
00037 #if defined(__cplusplus)
00038 extern "C" {
00039 #endif
00040 
00041     
00043 #define MOUNT_RD 0
00044 
00046 #define MOUNT_RW 1
00047 
00048 
00049 int mntd_mount_mount(const char *device, const char *mntpnt);
00050 int mntd_mount_umount(const char *path);
00051 int _mntd_mount_remount(const char *options, const char *mntpnt);
00052 int mntd_mount_remount_rd(const char *mntpnt);
00053 int mntd_mount_remount_rw(const char *mntpnt);
00054 int mntd_mount_remount_from_configfile(const char *mntpnt);
00055 FILE *mntd_mount_open_mtab(void);
00056 int mntd_mount_is_mounted(const char *path);
00057 struct mntent *mntd_mount_getmntent(const char *path);
00058 char *mntd_mount_getfsname(const char *path);
00059 char *mntd_mount_getoptions(const char *path);
00060 char *mntd_mount_normalize_options(const char *options);
00061 
00062 
00063 #if defined(__cplusplus)
00064 }
00065 #endif
00066 
00067 #endif /* __MNTD_MOUNT_H__ */

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