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

mntd_dir.h

00001 /***************************************************************************
00002  * CVSID: $Id: mntd_dir.h,v 1.1 2004/04/01 19:30:23 stefanb Exp $
00003  *
00004  * mntd_dir.h : directory handler 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_DIR_H__
00027 #define __MNTD_DIR_H__
00028 
00029 #ifdef HAVE_CONFIG_H
00030     #include "config.h"
00031 #endif
00032 
00033 #include <sys/types.h>
00034 
00035 #if defined(__cplusplus)
00036 extern "C" {
00037 #endif
00038 
00039 #define LAST_CHAR(buf) buf[strlen(buf)-1] 
00040 #define DIRSEP '/'                        
00043 int mntd_dir_is_dir(char *dirpath);
00044 int mntd_dir_remove(char *dirpath);
00045 int mntd_dir_mkdirs(const char *pathname, mode_t mode, int *error);
00046 int mntd_dir_rmdirs(char *dirname);
00047 
00048 
00049 #if defined(__cplusplus)
00050 }
00051 #endif
00052 
00053 #endif /* __MNTD_DIR_H__ */

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