00001 /*************************************************************************** 00002 * CVSID: $Id: mntd_file.h,v 1.1 2004/04/01 19:30:23 stefanb Exp $ 00003 * 00004 * mntd_file.h : file 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_FILE_H__ 00027 #define __MNTD_FILE_H__ 00028 00029 #include <dbus/dbus.h> 00030 00031 #if defined(__cplusplus) 00032 extern "C" { 00033 #endif 00034 00035 00036 int mntd_file_is_fifo(char *filepath); 00037 int mntd_file_is_file(char *filepath); 00038 int mntd_file_get_stamp(char *filepath); 00039 int mntd_file_get_size(char *filepath); 00040 char *mntd_file_read(char *filepath); 00041 int mntd_file_write(char *filepath, char *data); 00042 int mntd_file_remove(char *filepath); 00043 00044 00045 #if defined(__cplusplus) 00046 } 00047 #endif 00048 00049 #endif /* __MNTD_FILE_H__ */