From 101ec579363ce6fca77c588fa466445f3eab2737 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 30 Jan 2016 03:29:12 +0100 Subject: [PATCH] movie.c - turn some functions static --- movie.c | 9 +++++---- movie.h | 9 --------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/movie.c b/movie.c index 3e185bef5a..6474853e1d 100644 --- a/movie.c +++ b/movie.c @@ -198,7 +198,7 @@ void bsv_movie_free(bsv_movie_t *handle) free(handle); } -bsv_movie_t *bsv_movie_init(const char *path, enum rarch_movie_type type) +static bsv_movie_t *bsv_movie_init(const char *path, enum rarch_movie_type type) { bsv_movie_t *handle = (bsv_movie_t*)calloc(1, sizeof(*handle)); if (!handle) @@ -227,14 +227,15 @@ error: return NULL; } -void bsv_movie_set_frame_start(bsv_movie_t *handle) +/* Used for rewinding while playback/record. */ +static void bsv_movie_set_frame_start(bsv_movie_t *handle) { if (!handle) return; handle->frame_pos[handle->frame_ptr] = ftell(handle->file); } -void bsv_movie_set_frame_end(bsv_movie_t *handle) +static void bsv_movie_set_frame_end(bsv_movie_t *handle) { if (!handle) return; @@ -245,7 +246,7 @@ void bsv_movie_set_frame_end(bsv_movie_t *handle) handle->did_rewind = false; } -void bsv_movie_frame_rewind(bsv_movie_t *handle) +static void bsv_movie_frame_rewind(bsv_movie_t *handle) { handle->did_rewind = true; diff --git a/movie.h b/movie.h index a658c2f28f..1f988cf0f1 100644 --- a/movie.h +++ b/movie.h @@ -75,15 +75,6 @@ void bsv_movie_set_path(const char *path); void bsv_movie_set_start_path(const char *path); -bsv_movie_t *bsv_movie_init(const char *path, enum rarch_movie_type type); - -/* Used for rewinding while playback/record. */ -void bsv_movie_set_frame_start(bsv_movie_t *handle); - -void bsv_movie_set_frame_end(bsv_movie_t *handle); - -void bsv_movie_frame_rewind(bsv_movie_t *handle); - void bsv_movie_free(bsv_movie_t *handle); bool bsv_movie_ctl(enum bsv_ctl_state state, void *data);