From 189af65f71bf766db61ea604d3f8617aa0f24241 Mon Sep 17 00:00:00 2001 From: Timo Strunk Date: Tue, 9 Sep 2014 15:25:32 +0200 Subject: [PATCH] Added zip support skeletons --- decompress/zip_support.c | 37 +++++++++++++++++++++++++++++++++++++ decompress/zip_support.h | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 decompress/zip_support.c create mode 100644 decompress/zip_support.h diff --git a/decompress/zip_support.c b/decompress/zip_support.c new file mode 100644 index 0000000000..03c3876cbf --- /dev/null +++ b/decompress/zip_support.c @@ -0,0 +1,37 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2010-2014 - Hans-Kristian Arntzen + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + + + +#include +#include +#include + +#include +#include "../miscellaneous.h" +#include "../file_path.h" +#include "zip_support.h" + + +// Extract the relative path relative_path from a zip archive archive_path and allocate a buf for it to write it in. +int read_zip_file(const char * archive_path, const char *relative_path, void **buf) +{ +} + +struct string_list *compressed_zip_file_list_new(const char *path, + const char* ext) +{ + +} diff --git a/decompress/zip_support.h b/decompress/zip_support.h new file mode 100644 index 0000000000..c11d88e891 --- /dev/null +++ b/decompress/zip_support.h @@ -0,0 +1,33 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2010-2014 - Hans-Kristian Arntzen + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#ifndef __RARCH_ZIP_SUPPORT_H +#define __RARCH_ZIP_SUPPORT_H + +#ifdef __cplusplus +extern "C" { +#endif + +int read_zip_file(const char * archive_path, + const char *relative_path, void **buf); + +struct string_list *compressed_zip_file_list_new(const char *path, + const char* ext); + +#ifdef __cplusplus +} +#endif + +#endif