packio-simple
diff src/packio_impl.h @ 1:eb07de55d0e6
redesigning packio
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 09 Aug 2015 03:15:07 +0300 |
parents | d81c3ae262a0 |
children | 4767e7769c32 |
line diff
1.1 --- a/src/packio_impl.h Sun Sep 09 06:05:11 2012 +0300 1.2 +++ b/src/packio_impl.h Sun Aug 09 03:15:07 2015 +0300 1.3 @@ -1,23 +1,11 @@ 1.4 #ifndef PACKIO_IMPL_H_ 1.5 #define PACKIO_IMPL_H_ 1.6 1.7 -enum { NODE_FILE, NODE_DIR }; 1.8 -enum { FILE_REAL, FILE_VIRT }; 1.9 +#include "rbtree.h" 1.10 1.11 -struct fsnode { 1.12 - int type, ftype; 1.13 - long size; 1.14 - 1.15 - struct fsnode *clist, *clist_tail; 1.16 -}; 1.17 - 1.18 -struct pack_file { 1.19 - struct fsnode *node; 1.20 - long pos; 1.21 -}; 1.22 - 1.23 -struct pack_dir { 1.24 - struct fsnode *node; 1.25 +struct packfile { 1.26 + int rev; /* packfile revision */ 1.27 + struct rbtree *files; 1.28 }; 1.29 1.30 #endif /* PACKIO_IMPL_H_ */