Main Page | Class List | File List | Class Members | File Members

ipod_file_utils.h

Go to the documentation of this file.
00001 /*
00002  * ipod_file_utils.h
00003  *
00004  * Duane Maxwell
00005  * (c) 2005 by Linspire Inc
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020  */
00021 
00022 #ifndef __IPOD_FILE_UTILS_H__
00023 #define __IPOD_FILE_UTILS_H__
00024 
00025 #include <stdint.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00041 typedef void (*ipod_file_transfer_func)(uint64_t transferred, uint64_t total,void *userData);
00042 
00048 extern int ipod_directory_exists(const char *path);
00049 
00055 extern int ipod_file_exists(const char *path);
00056 
00061 extern void ipod_delete_file(const char *path);
00062 
00071 extern int ipod_copy_file(const char *srcFile, const char *dstFile,ipod_file_transfer_func callback,void *userData);
00072 
00083 extern const char *ipod_extension_of(const char *path,const char *def);
00084 
00094 extern const char *ipod_file_name_of(const char *path);
00095 
00096 #ifdef __cplusplus
00097 };
00098 #endif
00099 
00100 #endif

Generated on Tue Dec 13 14:55:22 2005 for libipod by  doxygen 1.3.9.1