00001 /* 00002 ** Copyright 1998-2003 University of Illinois Board of Trustees 00003 ** Copyright 1998-2003 Mark D. Roth 00004 ** All rights reserved. 00005 ** 00006 ** libtar.h - header file for libtar library 00007 ** 00008 ** Mark D. Roth <roth@uiuc.edu> 00009 ** Campus Information Technologies and Educational Services 00010 ** University of Illinois at Urbana-Champaign 00011 */ 00012 00013 #ifndef LIBTAR_H 00014 #define LIBTAR_H 00015 00016 struct TAR; 00017 /* open a new tarfile handle */ 00018 int tar_open(TAR **t, const char *pathname); 00019 /* close tarfile handle */ 00020 int tar_close(TAR *t); 00021 /* get next file, it returns false, if Result contains a file, otherwise there is no more files in the tar archive */ 00022 bool tar_get_next_file(TAR *t, string& FileName, vector<char>& Result, bool& bError); 00023 00024 00025 #endif /* ! LIBTAR_H */ 00026