Make a number of functions static.

This commit is contained in:
Kim Woelders 2016-04-14 21:05:05 +02:00
parent 633a8667b1
commit bdd7630a21
4 changed files with 11 additions and 14 deletions

View File

@ -18,6 +18,8 @@
#include "loaderpath.h"
#include "script.h"
static char **__imlib_ListFilters(int *num_ret);
static pImlibExternalFilter filters = NULL;
static int dyn_initialised = 0;
@ -27,7 +29,7 @@ static int dyn_initialised = 0;
#define FDEBUG
*/
pImlibExternalFilter
static pImlibExternalFilter
__imlib_LoadFilter(char *file)
{
ImlibExternalFilter *ptr;
@ -150,7 +152,7 @@ __imlib_get_dynamic_filter(char *name)
}
/* loader dir */
char **
static char **
__imlib_ListFilters(int *num_ret)
{
char **list = NULL, **l, *s;

View File

@ -33,7 +33,5 @@ struct _imlib_external_filter {
void __imlib_dynamic_filters_init(void);
void __imlib_dynamic_filters_deinit(void);
pImlibExternalFilter __imlib_get_dynamic_filter(char *name);
char **__imlib_ListFilters(int *num_ret);
pImlibExternalFilter __imlib_LoadFilter(char *file);
#endif

View File

@ -17,6 +17,8 @@
#include "image.h"
#include "loaderpath.h"
static void __imlib_LoadAllLoaders(void);
static ImlibImage *images = NULL;
#ifdef BUILD_X11
@ -560,7 +562,7 @@ __imlib_CleanupImagePixmapCache(void)
/* try dlopen()ing the file if we succeed finish filling out the malloced */
/* loader struct and return it */
ImlibLoader *
static ImlibLoader *
__imlib_ProduceLoader(char *file)
{
ImlibLoader *l;
@ -594,7 +596,7 @@ __imlib_ProduceLoader(char *file)
/* list all the filenames of loaders in the system loaders dir and the user */
/* loader dir */
char **
static char **
__imlib_ListLoaders(int *num_ret)
{
char **list = NULL, **l, *s;
@ -695,7 +697,7 @@ __imlib_ItemInList(char **list, int size, char *item)
}
/* fre the struct for a loader and close its dlopen'd handle */
void
static void
__imlib_ConsumeLoader(ImlibLoader * l)
{
if (l->file)
@ -713,7 +715,7 @@ __imlib_ConsumeLoader(ImlibLoader * l)
free(l);
}
void
static void
__imlib_RescanLoaders(void)
{
static time_t last_scan_time = 0;
@ -764,7 +766,7 @@ __imlib_RemoveAllLoaders(void)
/* find all the loaders we can find and load them up to see what they can */
/* load / save */
void
static void
__imlib_LoadAllLoaders(void)
{
int i, num;

View File

@ -135,14 +135,9 @@ void __imlib_AddImagePixmapToCache(ImlibImagePixmap * ip);
void __imlib_RemoveImagePixmapFromCache(ImlibImagePixmap * ip);
void __imlib_CleanupImagePixmapCache(void);
#endif
ImlibLoader *__imlib_ProduceLoader(char *file);
char **__imlib_ListLoaders(int *num_ret);
char **__imlib_TrimLoaderList(char **list, int *num);
int __imlib_ItemInList(char **list, int size, char *item);
void __imlib_ConsumeLoader(ImlibLoader * l);
void __imlib_RescanLoaders(void);
void __imlib_RemoveAllLoaders(void);
void __imlib_LoadAllLoaders(void);
ImlibLoader *__imlib_FindBestLoaderForFile(const char *file,
int for_save);
ImlibLoader *__imlib_FindBestLoaderForFileFormat(const char *file,