path: root/src
diff options
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-18 12:02:45 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-20 13:27:42 +0900
commit126cbbc7a99a8368032b5706349a47edfa1643c8 (patch)
tree0b797d6e1cd5b2a1e3cfaf62872dc3efe0dde896 /src
parentedje: Edje_Edit - make sure we don't use an not initialized value. (diff)
Evas filters: Mark parser functions as EAPI for tests
The filter unit test case will directly call the parser functions.
Diffstat (limited to 'src')
2 files changed, 10 insertions, 11 deletions
diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c
index 25b3b1f669..01ff619b95 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -1669,7 +1669,7 @@ _instruction_create(const char *name)
#define PARSE_CHECK(a) do { if (!(a)) { ERR("Parsing failed because '%s' is false at %s:%d", #a, __FUNCTION__, __LINE__); PARSE_ABORT(); goto end; } } while (0)
+EAPI void
evas_filter_program_del(Evas_Filter_Program *pgm)
Evas_Filter_Instruction *instr;
@@ -1742,7 +1742,7 @@ end:
/** Parse a style program */
+EAPI Eina_Bool
evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str)
Evas_Filter_Instruction *instr = NULL;
@@ -1832,7 +1832,7 @@ end:
/** Evaluate required padding to correctly apply an effect */
+EAPI Eina_Bool
evas_filter_program_padding_get(Evas_Filter_Program *pgm,
int *l, int *r, int *t, int *b)
@@ -1868,7 +1868,7 @@ evas_filter_program_padding_get(Evas_Filter_Program *pgm,
/** Create an empty filter program for style parsing */
-Evas_Filter_Program *
+EAPI Evas_Filter_Program *
evas_filter_program_new(const char *name)
Evas_Filter_Program *pgm;
@@ -1883,7 +1883,7 @@ evas_filter_program_new(const char *name)
/** Bind objects for proxy rendering */
+EAPI void
evas_filter_program_source_set_all(Evas_Filter_Program *pgm,
Eina_Hash *proxies)
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index f569b6e9e5..2ad272c0f2 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -91,13 +91,12 @@ enum _Evas_Filter_Transform_Flags
/* Parser stuff (high level API) */
-Evas_Filter_Program *evas_filter_program_new(const char *name);
-Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str);
-void evas_filter_program_del(Evas_Filter_Program *pgm);
+EAPI Evas_Filter_Program *evas_filter_program_new(const char *name);
+EAPI Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str);
+EAPI void evas_filter_program_del(Evas_Filter_Program *pgm);
Eina_Bool evas_filter_context_program_use(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm);
-Eina_Bool evas_filter_program_padding_get(Evas_Filter_Program *pgm, int *l, int *r, int *t, int *b);
-//void evas_filter_program_source_set(Evas_Filter_Program *pgm, const char *name, Evas_Object *object);
-void evas_filter_program_source_set_all(Evas_Filter_Program *pgm, Eina_Hash *sources);
+EAPI Eina_Bool evas_filter_program_padding_get(Evas_Filter_Program *pgm, int *l, int *r, int *t, int *b);
+EAPI void evas_filter_program_source_set_all(Evas_Filter_Program *pgm, Eina_Hash *sources);
void evas_filter_context_proxy_render_all(Evas_Filter_Context *ctx, Eo *eo_obj, Eina_Bool do_async);
/* Filter context (low level) */