packio-simple

diff src/packio_impl.h @ 0:d81c3ae262a0

initial commit
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 09 Sep 2012 06:05:11 +0300
parents
children eb07de55d0e6
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/packio_impl.h	Sun Sep 09 06:05:11 2012 +0300
     1.3 @@ -0,0 +1,23 @@
     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 +
    1.10 +struct fsnode {
    1.11 +	int type, ftype;
    1.12 +	long size;
    1.13 +
    1.14 +	struct fsnode *clist, *clist_tail;
    1.15 +};
    1.16 +
    1.17 +struct pack_file {
    1.18 +	struct fsnode *node;
    1.19 +	long pos;
    1.20 +};
    1.21 +
    1.22 +struct pack_dir {
    1.23 +	struct fsnode *node;
    1.24 +};
    1.25 +
    1.26 +#endif	/* PACKIO_IMPL_H_ */