Skip to content

Commit

Permalink
Rename retro_file to file_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Mar 20, 2016
1 parent be9bf7d commit 3720cf8
Show file tree
Hide file tree
Showing 34 changed files with 43 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ OBJ += frontend/frontend.o \
libretro-common/lists/file_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.o \
libretro-common/file/retro_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/lists/string_list.o \
libretro-common/string/stdstring.o \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.ps3.salamander
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ PPU_SRCS = frontend/frontend_salamander.c \
libretro-common/hash/rhash.c \
libretro-common/string/stdstring.c \
libretro-common/compat/compat_strl.c \
libretro-common/file/retro_file.c \
libretro-common/streams/file_stream.c \
libretro-common/file/config_file.c \
verbosity.c

Expand Down
2 changes: 1 addition & 1 deletion Makefile.psp1.salamander
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/file/retro_dirent.o \
libretro-common/compat/compat_strl.o \
libretro-common/file/config_file.o \
libretro-common/file/retro_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/hash/rhash.o \
verbosity.o \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.wii.salamander
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ OBJ = frontend/frontend_salamander.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_dirent.o \
libretro-common/file/retro_stat.o \
libretro-common/compat/compat_strl.o \
Expand Down
2 changes: 1 addition & 1 deletion cheevos.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <ctype.h>

#include <formats/jsonsax.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <rhash.h>
#include <rthreads/async_job.h>

Expand Down
2 changes: 1 addition & 1 deletion content.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <string/stdstring.h>

#include <retro_miscellaneous.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <retro_stat.h>
#include <retro_assert.h>

Expand Down
2 changes: 1 addition & 1 deletion frontend/drivers/platform_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
#include <boolean.h>
#include <retro_dirent.h>
#include <retro_inline.h>
#include <retro_file.h>
#include <compat/strl.h>
#include <rhash.h>
#include <file/file_path.h>
#include <streams/file_stream.h>
#include <string/stdstring.h>

#include "../frontend.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers/gx_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <gccore.h>
#include <ogcsys.h>

#include <retro_file.h>
#include <streams/file_stream.h>

#include "../../driver.h"
#include "../../general.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_context/drm_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <gbm.h>

#include <lists/dir_list.h>
#include <retro_file.h>
#include <streams/file_stream.h>

#include "../../verbosity.h"
#include "../../driver.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_context/mali_fbdev_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <linux/fb.h>
#include <linux/vt.h>

#include <retro_file.h>
#include <streams/file_stream.h>

#include "../../driver.h"
#include "../../general.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_font_renderer/stb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <ctype.h>

#include <file/file_path.h>
#include <retro_file.h>
#include <streams/file_stream.h>

#include "../font_driver.h"
#include "../../general.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/glslang_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <string>
#include <sstream>

#include <retro_file.h>
#include <streams/file_stream.h>
#include <lists/string_list.h>

#include "glslang_util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion gfx/drivers_shader/shader_glsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <compat/posix_string.h>
#include <file/file_path.h>
#include <retro_assert.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <string/stdstring.h>

#include "../../general.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/video_state_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <compat/strl.h>
#include <compat/posix_string.h>
#include <retro_file.h>
#include <streams/file_stream.h>

#include "video_state_python.h"
#include "../dynamic.h"
Expand Down
2 changes: 1 addition & 1 deletion gfx/video_texture_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <formats/rpng.h>
#endif
#include <formats/tga.h>
#include <retro_file.h>
#include <streams/file_stream.h>

#include "../general.h"

Expand Down
2 changes: 1 addition & 1 deletion griffin/griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ FILE
#include "../libretro-common/lists/string_list.c"
#include "../libretro-common/lists/file_list.c"
#include "../libretro-common/file/retro_dirent.c"
#include "../libretro-common/file/retro_file.c"
#include "../libretro-common/streams/file_stream.c"
#include "../libretro-common/file/retro_stat.c"
#include "../dir_list_special.c"
#include "../string_list_special.c"
Expand Down
2 changes: 1 addition & 1 deletion libretro-common/file/archive_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <compat/strl.h>
#include <file/archive_file.h>
#include <file/file_path.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <retro_stat.h>
#include <retro_miscellaneous.h>
#include <lists/string_list.h>
Expand Down
2 changes: 1 addition & 1 deletion libretro-common/file/archive_file_zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <compat/zlib.h>
#include <file/archive_file.h>
#include <retro_file.h>
#include <streams/file_stream.h>

static void *zlib_stream_new(void)
{
Expand Down
2 changes: 1 addition & 1 deletion libretro-common/formats/bmp/rbmp_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <stdlib.h>
#include <string.h>

#include <retro_file.h>
#include <streams/file_stream.h>
#include <formats/rbmp.h>

static bool write_header_bmp(RFILE *file, unsigned width, unsigned height, bool is32bpp)
Expand Down
2 changes: 1 addition & 1 deletion libretro-common/formats/png/rpng_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>

#include <retro_file.h>
#include <streams/file_stream.h>

#include "rpng_internal.h"

Expand Down
2 changes: 1 addition & 1 deletion libretro-common/formats/xml/rxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <ctype.h>

#include <boolean.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <compat/posix_string.h>

#include <formats/rxml.h>
Expand Down
2 changes: 1 addition & 1 deletion libretro-common/hash/rhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <rhash.h>
#include <retro_miscellaneous.h>
#include <retro_endianness.h>
#include <retro_file.h>
#include <streams/file_stream.h>

#define LSL32(x, n) ((uint32_t)(x) << (n))
#define LSR32(x, n) ((uint32_t)(x) >> (n))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright (C) 2010-2015 The RetroArch team
/* Copyright (C) 2010-2016 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (retro_file.h).
* The following license statement only applies to this file (file_stream.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
Expand All @@ -20,8 +20,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#ifndef __RETRO_FILE_H
#define __RETRO_FILE_H
#ifndef __LIBRETRO_SDK_FILE_STREAM_H
#define __LIBRETRO_SDK_FILE_STREAM_H

#include <stdint.h>
#include <stddef.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright (C) 2010-2015 The RetroArch team
/* Copyright (C) 2010-2016 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (retro_file.c).
* The following license statement only applies to this file (file_stream.c).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
Expand Down Expand Up @@ -63,7 +63,7 @@
#include <fcntl.h>
#endif

#include <retro_file.h>
#include <streams/file_stream.h>
#include <memmap.h>

#if 1
Expand Down
9 changes: 6 additions & 3 deletions libretro-db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ else
CFLAGS = -g -O2 -Wall -DNDEBUG
endif

LIBRETRO_COMMON_C = \
$(LIBRETRO_COMMON_DIR)/streams/file_stream.c

C_CONVERTER_C = \
rmsgpack.c \
rmsgpack_dom.c \
Expand All @@ -19,7 +22,7 @@ C_CONVERTER_C = \
c_converter.c \
$(LIBRETRO_COMMON_DIR)/hash/rhash.c \
$(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c \
$(LIBRETRO_COMMON_C) \
$(LIBRETRO_COMMON_DIR)/compat/compat_strl.c

C_CONVERTER_OBJS := $(C_CONVERTER_C:.c=.o)
Expand All @@ -32,15 +35,15 @@ RARCHDB_TOOL_C = \
query.c \
libretrodb.c \
$(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c \
$(LIBRETRO_COMMON_C) \
$(LIBRETRO_COMMON_DIR)/compat/compat_strl.c

RARCHDB_TOOL_OBJS := $(RARCHDB_TOOL_C:.c=.o)

RMSGPACK_C = \
rmsgpack.c \
rmsgpack_test.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c
$(LIBRETRO_COMMON_C)

RMSGPACK_OBJS := $(RMSGPACK_C:.c=.o)

Expand Down
2 changes: 1 addition & 1 deletion libretro-db/libretrodb.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <sys/stat.h>
#include <stdlib.h>

#include <retro_file.h>
#include <streams/file_stream.h>
#include <retro_endianness.h>
#include <compat/strl.h>

Expand Down
2 changes: 1 addition & 1 deletion libretro-db/rmsgpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <stdint.h>

#include <retro_file.h>
#include <streams/file_stream.h>

struct rmsgpack_read_callbacks
{
Expand Down
2 changes: 1 addition & 1 deletion libretro-db/rmsgpack_dom.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <stdint.h>

#include <retro_file.h>
#include <streams/file_stream.h>

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 0 additions & 1 deletion menu/cbs/menu_cbs_ok.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <file/file_path.h>
#include <retro_assert.h>
#include <retro_stat.h>
#include <retro_file.h>
#include <string/stdstring.h>
#include <lists/string_list.h>

Expand Down
2 changes: 1 addition & 1 deletion menu/menu_content.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

#include <retro_assert.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <file/file_path.h>
#include <string/stdstring.h>

Expand Down
2 changes: 1 addition & 1 deletion patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <compat/msvc.h>
#include <file/file_path.h>
#include <file/archive_file.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <retro_stat.h>
#include <string/stdstring.h>

Expand Down
2 changes: 1 addition & 1 deletion retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <boolean.h>
#include <string/stdstring.h>
#include <streams/file_stream.h>
#include <lists/string_list.h>

#ifdef _WIN32
Expand Down Expand Up @@ -59,7 +60,6 @@
#include "performance.h"
#include "cheats.h"
#include "system.h"
#include "retro_file.h"

#include "git_version.h"

Expand Down
2 changes: 1 addition & 1 deletion tasks/task_database_cue.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <compat/strl.h>
#include <file/file_path.h>
#include <retro_endianness.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <string/stdstring.h>

#include "tasks_internal.h"
Expand Down
2 changes: 1 addition & 1 deletion tasks/task_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <file/file_path.h>
#include <file/archive_file.h>
#include <net/net_compat.h>
#include <retro_file.h>
#include <streams/file_stream.h>
#include <retro_stat.h>

#include "../msg_hash.h"
Expand Down

0 comments on commit 3720cf8

Please sign in to comment.