/src/zziplib/zzip/zzip32.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 51 lines · 18 code · 7 blank · 26 comment · 0 complexity · 5c97d8783ea8e9e9bcde26cd54435836 MD5 · raw file

  1. /*
  2. * Author:
  3. * Guido Draheim <guidod@gmx.de>
  4. *
  5. * Copyright (c) 2010 Guido Draheim
  6. * All rights reserved,
  7. * usage allowed under the restrictions of the
  8. * Lesser GNU General Public License
  9. * or alternatively the restrictions
  10. * of the Mozilla Public License 1.1
  11. *
  12. * The compat32 headers is targeted towards those poor souls who can
  13. * not compile their application or library with _LARGEFILE_SOURCE but
  14. * they may still need to access a libzzip compiled in largefile mode.
  15. * In that case they can change back to calling these suffix32 functions
  16. * which are ensured to use "long" as the parameter type - just as it used
  17. * to be before off_t was defined as an alias for it.
  18. */
  19. #ifndef _ZZIP_ZZIP32_H
  20. #define _ZZIP_ZZIP32_H
  21. #include <zzip/lib.h>
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /*
  26. * Scanning files in zip archive.
  27. * Implemented in zzip/dir.c
  28. */
  29. _zzip_export
  30. long zzip_telldir32(ZZIP_DIR * dir);
  31. _zzip_export
  32. void zzip_seekdir32(ZZIP_DIR * dir, long offset);
  33. /*
  34. * seek and tell functions.
  35. * Implemented in zzip/file.c
  36. */
  37. _zzip_export
  38. long zzip_seek32(ZZIP_FILE * fp, long offset, int whence);
  39. _zzip_export
  40. long zzip_tell32(ZZIP_FILE * fp);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif