kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=bdd7630a21faf395cc01792e245a9496f52c94ca

commit bdd7630a21faf395cc01792e245a9496f52c94ca
Author: Kim Woelders <k...@woelders.dk>
Date:   Thu Apr 14 21:05:05 2016 +0200

    Make a number of functions static.
---
 src/lib/dynamic_filters.c |  6 ++++--
 src/lib/dynamic_filters.h |  2 --
 src/lib/image.c           | 12 +++++++-----
 src/lib/image.h           |  5 -----
 4 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/src/lib/dynamic_filters.c b/src/lib/dynamic_filters.c
index b3a849c..bc102ec 100644
--- a/src/lib/dynamic_filters.c
+++ b/src/lib/dynamic_filters.c
@@ -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;
diff --git a/src/lib/dynamic_filters.h b/src/lib/dynamic_filters.h
index ab57cbd..926705e 100644
--- a/src/lib/dynamic_filters.h
+++ b/src/lib/dynamic_filters.h
@@ -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
diff --git a/src/lib/image.c b/src/lib/image.c
index 9a7c697..0b7790d 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -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;
diff --git a/src/lib/image.h b/src/lib/image.h
index 5fae6ed..24b7907 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -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,

-- 


Reply via email to