00001 /* $Id: file_access.h 3553 2011-05-05 06:14:19Z nanang $ */00002 /* 00003 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)00004 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>00005 *00006 * This program is free software; you can redistribute it and/or modify00007 * it under the terms of the GNU General Public License as published by00008 * the Free Software Foundation; either version 2 of the License, or00009 * (at your option) any later version.00010 *00011 * This program is distributed in the hope that it will be useful,00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the00014 * GNU General Public License for more details.00015 *00016 * You should have received a copy of the GNU General Public License00017 * along with this program; if not, write to the Free Software00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */00020 #ifndef __PJ_FILE_ACCESS_H__00021 #define __PJ_FILE_ACCESS_H__00022
00027 #include <pj/types.h>00028
00029 PJ_BEGIN_DECL00030
00043typedefstruct pj_file_stat00044 {
00045pj_off_tsize;
00046pj_time_valatime;
00047pj_time_valmtime;
00048pj_time_valctime;
00049 } pj_file_stat;
00050
00051
00059 PJ_DECL(pj_bool_t) pj_file_exists(const char *filename);
00060
00068 PJ_DECL(pj_off_t) pj_file_size(const char *filename);
00069
00077 PJ_DECL(pj_status_t) pj_file_delete(const char *filename);
00078
00088 PJ_DECL(pj_status_t) pj_file_move( const char *oldname,
00089 const char *newname);
00090
00091
00101 PJ_DECL(pj_status_t) pj_file_getstat(const char *filename, pj_file_stat *stat);
00102
00103
00106 PJ_END_DECL00107
00108
00109 #endif /* __PJ_FILE_ACCESS_H__ */
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.