From ce8386799b26605177710330a6295f766255136c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 18 Nov 2019 21:58:20 +0100 Subject: [PATCH] external renderer: Rename FUNC_DECL to EXPORTED_FUNC_DECL to show that it also exports a function --- .../output-renderers/external-renderer-interfaces.h | 2 +- plugins/plugin-example/src/plugin-main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gds-render/output-renderers/external-renderer-interfaces.h b/include/gds-render/output-renderers/external-renderer-interfaces.h index 028d248..f320c5c 100644 --- a/include/gds-render/output-renderers/external-renderer-interfaces.h +++ b/include/gds-render/output-renderers/external-renderer-interfaces.h @@ -50,7 +50,7 @@ * * This not only helps with the declaration but also makes the symbols visible, so they can be called form outside the library */ -#define FUNC_DECL(FUNC) EXPORT_FUNC FUNC +#define EXPORTED_FUNC_DECL(FUNC) EXPORT_FUNC FUNC /** @} */ diff --git a/plugins/plugin-example/src/plugin-main.c b/plugins/plugin-example/src/plugin-main.c index 1bac538..5892fe9 100644 --- a/plugins/plugin-example/src/plugin-main.c +++ b/plugins/plugin-example/src/plugin-main.c @@ -31,7 +31,7 @@ #include #include -int FUNC_DECL(EXTERNAL_LIBRARY_RENDER_FUNCTION)(struct gds_cell *toplevel, GList *layer_info_list, const char *output_file_name, double scale) +int EXPORTED_FUNC_DECL(EXTERNAL_LIBRARY_RENDER_FUNCTION)(struct gds_cell *toplevel, GList *layer_info_list, const char *output_file_name, double scale) { if (!toplevel) return -1000; @@ -40,7 +40,7 @@ int FUNC_DECL(EXTERNAL_LIBRARY_RENDER_FUNCTION)(struct gds_cell *toplevel, GList return 0; } -int FUNC_DECL(EXTERNAL_LIBRARY_INIT_FUNCTION)(const char *params, const char *version) +int EXPORTED_FUNC_DECL(EXTERNAL_LIBRARY_INIT_FUNCTION)(const char *params, const char *version) { printf("Init with params: %s\ngds-render version: %s\n", params, version); return 0;