external renderer: Rename FUNC_DECL to EXPORTED_FUNC_DECL to show that it also exports a function

This commit is contained in:
Mario Hüttel 2019-11-18 21:58:20 +01:00
parent 374e3b54c0
commit ce8386799b
2 changed files with 3 additions and 3 deletions

View File

@ -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 * 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
/** @} */ /** @} */

View File

@ -31,7 +31,7 @@
#include <gds-render/gds-utils/gds-types.h> #include <gds-render/gds-utils/gds-types.h>
#include <gds-render/output-renderers/external-renderer-interfaces.h> #include <gds-render/output-renderers/external-renderer-interfaces.h>
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) if (!toplevel)
return -1000; return -1000;
@ -40,7 +40,7 @@ int FUNC_DECL(EXTERNAL_LIBRARY_RENDER_FUNCTION)(struct gds_cell *toplevel, GList
return 0; 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); printf("Init with params: %s\ngds-render version: %s\n", params, version);
return 0; return 0;