godot/core/io/file_access_zip.cpp

/**************************************************************************/
/*  file_access_zip.cpp                                                   */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#ifdef MINIZIP_ENABLED

#include "file_access_zip.h"

#include "core/io/file_access.h"

ZipArchive *ZipArchive::instance =;

extern "C" {

struct ZipData {};

static void *godot_open(voidpf opaque, const char *p_fname, int mode) {}

static uLong godot_read(voidpf opaque, voidpf stream, void *buf, uLong size) {}

static uLong godot_write(voidpf opaque, voidpf stream, const void *buf, uLong size) {}

static long godot_tell(voidpf opaque, voidpf stream) {}

static long godot_seek(voidpf opaque, voidpf stream, uLong offset, int origin) {}

static int godot_close(voidpf opaque, voidpf stream) {}

static int godot_testerror(voidpf opaque, voidpf stream) {}

static voidpf godot_alloc(voidpf opaque, uInt items, uInt size) {}

static void godot_free(voidpf opaque, voidpf address) {}
} // extern "C"

void ZipArchive::close_handle(unzFile p_file) const {}

unzFile ZipArchive::get_file_handle(const String &p_file) const {}

bool ZipArchive::try_open_pack(const String &p_path, bool p_replace_files, uint64_t p_offset = 0) {}

bool ZipArchive::file_exists(const String &p_name) const {}

Ref<FileAccess> ZipArchive::get_file(const String &p_path, PackedData::PackedFile *p_file) {}

ZipArchive *ZipArchive::get_singleton() {}

ZipArchive::ZipArchive() {}

ZipArchive::~ZipArchive() {}

Error FileAccessZip::open_internal(const String &p_path, int p_mode_flags) {}

void FileAccessZip::_close() {}

bool FileAccessZip::is_open() const {}

void FileAccessZip::seek(uint64_t p_position) {}

void FileAccessZip::seek_end(int64_t p_position) {}

uint64_t FileAccessZip::get_position() const {}

uint64_t FileAccessZip::get_length() const {}

bool FileAccessZip::eof_reached() const {}

uint64_t FileAccessZip::get_buffer(uint8_t *p_dst, uint64_t p_length) const {}

Error FileAccessZip::get_error() const {}

void FileAccessZip::flush() {}

void FileAccessZip::store_buffer(const uint8_t *p_src, uint64_t p_length) {}

bool FileAccessZip::file_exists(const String &p_name) {}

void FileAccessZip::close() {}

FileAccessZip::FileAccessZip(const String &p_path, const PackedData::PackedFile &p_file) {}

FileAccessZip::~FileAccessZip() {}

#endif // MINIZIP_ENABLED