packio-simple

diff include/packio.h @ 1:eb07de55d0e6

redesigning packio
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 09 Aug 2015 03:15:07 +0300
parents d81c3ae262a0
children
line diff
     1.1 --- a/include/packio.h	Sun Sep 09 06:05:11 2012 +0300
     1.2 +++ b/include/packio.h	Sun Aug 09 03:15:07 2015 +0300
     1.3 @@ -2,27 +2,16 @@
     1.4  #define PACKIO_H_
     1.5  
     1.6  struct pack_file;
     1.7 -struct pack_dir;
     1.8 -
     1.9 -#define PACK_NAME_MAX	256
    1.10 -
    1.11 -struct pack_dirent {
    1.12 -	char d_name[PACK_NAME_MAX];
    1.13 -};
    1.14  
    1.15  /* not sure I like this capitalization, but it matches the libc counterparts */
    1.16  typedef struct pack_file PACKFILE;
    1.17 -typedef struct pack_dir PACKDIR;
    1.18  
    1.19  
    1.20  int pack_init(void);
    1.21  void pack_cleanup(void);
    1.22 -int pack_mount(const char *fname, const char *path);
    1.23 +int pack_addpk(const char *pkfname);
    1.24  
    1.25  int pack_exists(const char *path);
    1.26 -int pack_isfile(const char *path);
    1.27 -int pack_isdir(const char *path);
    1.28 -
    1.29  
    1.30  /* file i/o */
    1.31  PACKFILE *pack_fopen(const char *path, const char *mode);
    1.32 @@ -41,10 +30,5 @@
    1.33  int pack_fgetc(PACKFILE *fp);
    1.34  char *pack_fgets(char *buf, int size, PACKFILE *fp);
    1.35  
    1.36 -/* directory handling */
    1.37 -PACKDIR *pack_opendir(const char *name);
    1.38 -int pack_closedir(PACKDIR *dir);
    1.39 -struct pack_dirent *pack_readdir(PACKDIR *dir);
    1.40 -
    1.41  
    1.42  #endif	/* PACKIO_H_ */