You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.2 KiB
68 lines
2.2 KiB
3 years ago
|
/* mz_sstrm_win32.h -- Stream for filesystem access for windows
|
||
|
Version 2.3.3, June 10, 2018
|
||
|
part of the MiniZip project
|
||
|
|
||
|
Copyright (C) 2010-2018 Nathan Moinvaziri
|
||
|
https://github.com/nmoinvaz/minizip
|
||
|
Copyright (C) 2009-2010 Mathias Svensson
|
||
|
Modifications for Zip64 support
|
||
|
http://result42.com
|
||
|
Copyright (C) 1998-2010 Gilles Vollant
|
||
|
http://www.winimage.com/zLibDll/minizip.html
|
||
|
|
||
|
This program is distributed under the terms of the same license as zlib.
|
||
|
See the accompanying LICENSE file for the full text of the license.
|
||
|
*/
|
||
|
|
||
|
#ifndef MZ_STREAM_WIN32_H
|
||
|
#define MZ_STREAM_WIN32_H
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/***************************************************************************/
|
||
|
|
||
|
int32_t mz_stream_win32_open(void *stream, const char *path, int32_t mode);
|
||
|
int32_t mz_stream_win32_is_open(void *stream);
|
||
|
int32_t mz_stream_win32_read(void *stream, void *buf, int32_t size);
|
||
|
int32_t mz_stream_win32_write(void *stream, const void *buf, int32_t size);
|
||
|
int64_t mz_stream_win32_tell(void *stream);
|
||
|
int32_t mz_stream_win32_seek(void *stream, int64_t offset, int32_t origin);
|
||
|
int32_t mz_stream_win32_close(void *stream);
|
||
|
int32_t mz_stream_win32_error(void *stream);
|
||
|
|
||
|
void* mz_stream_win32_create(void **stream);
|
||
|
void mz_stream_win32_delete(void **stream);
|
||
|
|
||
|
void* mz_stream_win32_get_interface(void);
|
||
|
|
||
|
/***************************************************************************/
|
||
|
|
||
|
#if defined(_WIN32) || defined(MZ_USE_WIN32_API)
|
||
|
#define mz_stream_os_open mz_stream_win32_open
|
||
|
#define mz_stream_os_is_open mz_stream_win32_is_open
|
||
|
#define mz_stream_os_read mz_stream_win32_read
|
||
|
#define mz_stream_os_write mz_stream_win32_write
|
||
|
#define mz_stream_os_tell mz_stream_win32_tell
|
||
|
#define mz_stream_os_seek mz_stream_win32_seek
|
||
|
#define mz_stream_os_close mz_stream_win32_close
|
||
|
#define mz_stream_os_error mz_stream_win32_error
|
||
|
|
||
|
#define mz_stream_os_create mz_stream_win32_create
|
||
|
#define mz_stream_os_delete mz_stream_win32_delete
|
||
|
|
||
|
#define mz_stream_os_get_interface \
|
||
|
mz_stream_win32_get_interface
|
||
|
#endif
|
||
|
|
||
|
/***************************************************************************/
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|