duck_io_file.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //==========================================================================
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------
  11. #ifndef _duck_io_h_old
  12. #define _duck_io_h_old
  13. #if defined(__cplusplus)
  14. extern "C" {
  15. #endif
  16. #if defined (_WIN32)
  17. typedef __int64 int64_t;
  18. #else
  19. typedef long long int64_t;
  20. #endif
  21. #include "duck_io.h"
  22. int duck_open_file(const char *fname, unsigned long userData);
  23. void duck_close_file(int ghndl);
  24. int duck_read_file(int ghndl,unsigned char *buf, int nbytes);
  25. int64_t duck_seek_file(int gHndl,int64_t offs, int origin);
  26. int duck_name_file(int handle, char fname[], size_t maxLen); /* EMH 9-23-03 */
  27. int64_t duck_available_data_file(int handle); /* EMH 10-23-03 */
  28. #if defined(__cplusplus)
  29. }
  30. #endif
  31. #endif