src/tar_type.h
author miham
Tue, 15 Jul 2008 23:27:28 +0000
changeset 11149 f3ff534dded8
parent 11074 ec51c609170c
child 11180 982e9f814f97
permissions -rw-r--r--
(svn r13707) -Update: WebTranslator2 update to 2008-07-16 01:21:36
brazilian_portuguese - 3 fixed by tucalipe (3)
bulgarian - 78 fixed, 230 changed by thetitan (3), groupsky (305)
catalan - 3 fixed by arnaullv (3)
dutch - 3 fixed by webfreakz (3)
italian - 3 changed by lorenzodv (3)
korean - 4 fixed, 5 changed by leejaeuk5 (9)
russian - 3 fixed by Smoky555 (3)
slovenian - 4 fixed by Necrolyte (4)
spanish - 3 fixed by eusebio (3)
swedish - 4 fixed by daishan (4)
ukrainian - 2 fixed by mad (2)
/* $Id$ */

#ifndef TAR_TYPE_H
#define TAR_TYPE_H

/** @file tar_type.h Structs, typedefs and macros used for TAR file handling. */

#include <map>
#include <string>

/** The define of a TarList. */
struct TarListEntry {
	const char *filename;
};

struct TarFileListEntry {
	TarListEntry *tar;
	size_t size;
	size_t position;
};

typedef std::map<std::string, TarListEntry *> TarList;
typedef std::map<std::string, TarFileListEntry> TarFileList;
extern TarList _tar_list;
extern TarFileList _tar_filelist;

#define FOR_ALL_TARS(tar) for (tar = _tar_filelist.begin(); tar != _tar_filelist.end(); tar++)

typedef bool FioTarFileListCallback(const char *filename, int size, void *userdata);
FILE *FioTarFileList(const char *tar, const char *mode, size_t *filesize, FioTarFileListCallback *callback, void *userdata);

#endif /* TAR_TYPE_H */