Make some functions static

This commit is contained in:
twinaphex 2016-02-15 21:51:30 +01:00
parent f8b866c8c1
commit 620dac1abd
2 changed files with 3 additions and 25 deletions

View file

@ -566,7 +566,8 @@ static int content_zip_file_read(
* Extracts to buf, unless optional_filename != 0
* Then extracts to optional_filename and leaves buf alone.
*/
int content_file_compressed_read(const char * path, void **buf,
static int content_file_compressed_read(
const char * path, void **buf,
const char* optional_filename, ssize_t *length)
{
int ret = 0;
@ -642,7 +643,7 @@ error:
*
* Returns: 1 if file read, 0 on error.
*/
int content_file_read(const char *path, void **buf, ssize_t *length)
static int content_file_read(const char *path, void **buf, ssize_t *length)
{
#ifdef HAVE_COMPRESSION
if (path_contains_compressed_file(path))

View file

@ -91,29 +91,6 @@ void content_push_to_history_playlist(bool do_push,
bool content_ctl(enum content_ctl_state state, void *data);
#ifdef HAVE_COMPRESSION
/* Generic compressed file loader.
* Extracts to buf, unless optional_filename != 0
* Then extracts to optional_filename and leaves buf alone.
*/
int content_file_compressed_read(const char * path, void **buf,
const char* optional_filename, ssize_t *length);
#endif
/**
* content_file_read:
* @path : path to file.
* @buf : buffer to allocate and read the contents of the
* file into. Needs to be freed manually.
* @length : Number of items read, -1 on error.
*
* Read the contents of a file into @buf. Will call read_compressed_file
* if path contains a compressed file, otherwise will call read_generic_file.
*
* Returns: true (1) if file read, false (0) on error.
*/
int content_file_read(const char *path, void **buf, ssize_t *length);
#ifdef __cplusplus
}
#endif