forked from old/legacy-imlib2
Eliminate pImlibExternalFilter type.
This commit is contained in:
parent
bdd7630a21
commit
b49e71ed77
|
@ -20,7 +20,7 @@
|
|||
|
||||
static char **__imlib_ListFilters(int *num_ret);
|
||||
|
||||
static pImlibExternalFilter filters = NULL;
|
||||
static ImlibExternalFilter *filters = NULL;
|
||||
static int dyn_initialised = 0;
|
||||
|
||||
#define MALLOCSHOW
|
||||
|
@ -29,7 +29,7 @@ static int dyn_initialised = 0;
|
|||
#define FDEBUG
|
||||
*/
|
||||
|
||||
static pImlibExternalFilter
|
||||
static ImlibExternalFilter *
|
||||
__imlib_LoadFilter(char *file)
|
||||
{
|
||||
ImlibExternalFilter *ptr;
|
||||
|
@ -127,10 +127,10 @@ __imlib_dynamic_filters_deinit()
|
|||
{
|
||||
}
|
||||
|
||||
pImlibExternalFilter
|
||||
ImlibExternalFilter *
|
||||
__imlib_get_dynamic_filter(char *name)
|
||||
{
|
||||
pImlibExternalFilter f_ptr;
|
||||
ImlibExternalFilter *f_ptr;
|
||||
int i = 0;
|
||||
|
||||
/* scan the filters */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef _DYNAMIC_FILTERS_H_
|
||||
#define _DYNAMIC_FILTERS_H_
|
||||
|
||||
#include "common.h"
|
||||
#include "script.h"
|
||||
|
||||
struct imlib_filter_info {
|
||||
|
@ -13,7 +12,6 @@ struct imlib_filter_info {
|
|||
};
|
||||
|
||||
typedef struct _imlib_external_filter ImlibExternalFilter;
|
||||
typedef struct _imlib_external_filter *pImlibExternalFilter;
|
||||
|
||||
struct _imlib_external_filter {
|
||||
char *name;
|
||||
|
@ -27,11 +25,11 @@ struct _imlib_external_filter {
|
|||
void (*deinit_filter) (void);
|
||||
void *(*exec_filter) (char *filter, void *im,
|
||||
pIFunctionParam params);
|
||||
pImlibExternalFilter next;
|
||||
ImlibExternalFilter *next;
|
||||
};
|
||||
|
||||
void __imlib_dynamic_filters_init(void);
|
||||
void __imlib_dynamic_filters_deinit(void);
|
||||
pImlibExternalFilter __imlib_get_dynamic_filter(char *name);
|
||||
ImlibExternalFilter *__imlib_get_dynamic_filter(char *name);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue