aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-08-07 19:02:26 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-08-07 19:02:26 +0200
commit9adef869ed848098919ff9c359833053af8bedbb (patch)
tree89246f1f9e59629932d1d60bcd0b3f1a59fd08a3 /lib
parentc444ffb7fb5eca37ffb5849835f32080cb842c3e (diff)
downloadsynthpod-9adef869ed848098919ff9c359833053af8bedbb.tar.xz
fix symbol visibility.
Diffstat (limited to 'lib')
-rw-r--r--lib/synthpod_app.h28
-rw-r--r--lib/synthpod_common.h6
-rw-r--r--lib/synthpod_ui.h22
3 files changed, 31 insertions, 25 deletions
diff --git a/lib/synthpod_app.h b/lib/synthpod_app.h
index 46e9ef0d..137bfa20 100644
--- a/lib/synthpod_app.h
+++ b/lib/synthpod_app.h
@@ -93,48 +93,48 @@ struct _sp_app_driver_t {
osc_schedule_t *osc_sched;
};
-sp_app_t *
+SYNTHPOD_SYMBOL_EXTERN sp_app_t *
sp_app_new(const LilvWorld *world, sp_app_driver_t *driver, void *data);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_activate(sp_app_t *app);
-const sp_app_system_source_t *
+SYNTHPOD_SYMBOL_EXTERN const sp_app_system_source_t *
sp_app_get_system_sources(sp_app_t *app);
-const sp_app_system_sink_t *
+SYNTHPOD_SYMBOL_EXTERN const sp_app_system_sink_t *
sp_app_get_system_sinks(sp_app_t *app);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_from_ui(sp_app_t *app, const LV2_Atom *atom);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_from_worker(sp_app_t *app, uint32_t len, const void *data);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_worker_from_app(sp_app_t *app, uint32_t len, const void *data);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_run_pre(sp_app_t *app, uint32_t nsamples);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_run_post(sp_app_t *app, uint32_t nsamples);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_deactivate(sp_app_t *app);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_app_free(sp_app_t *app);
-LV2_State_Status
+SYNTHPOD_SYMBOL_EXTERN LV2_State_Status
sp_app_save(sp_app_t *app, LV2_State_Store_Function store,
LV2_State_Handle state, uint32_t flags, const LV2_Feature *const *features);
-LV2_State_Status
+SYNTHPOD_SYMBOL_EXTERN LV2_State_Status
sp_app_restore(sp_app_t *app, LV2_State_Retrieve_Function retrieve,
LV2_State_Handle state, uint32_t flags, const LV2_Feature *const *features);
-int
+SYNTHPOD_SYMBOL_EXTERN int
sp_app_paused(sp_app_t *app);
#endif // _SYNTHPOD_APP_H
diff --git a/lib/synthpod_common.h b/lib/synthpod_common.h
index 79eaa67e..0e401716 100644
--- a/lib/synthpod_common.h
+++ b/lib/synthpod_common.h
@@ -20,4 +20,10 @@
#define SYNTHPOD_PREFIX "http://open-music-kontrollers.ch/lv2/synthpod#"
+#ifdef _WIN32
+# define SYNTHPOD_SYMBOL_EXTERN __declspec(dllexport)
+#else
+# define SYNTHPOD_SYMBOL_EXTERN __attribute__((visibility("default")))
+#endif
+
#endif // _SYNTHPOD_COMMON_H
diff --git a/lib/synthpod_ui.h b/lib/synthpod_ui.h
index 932274e5..6e243fcb 100644
--- a/lib/synthpod_ui.h
+++ b/lib/synthpod_ui.h
@@ -86,38 +86,38 @@ struct _sp_ui_driver_t {
sp_ui_features_t features;
};
-sp_ui_t *
+SYNTHPOD_SYMBOL_EXTERN sp_ui_t *
sp_ui_new(Evas_Object *win, const LilvWorld *world, sp_ui_driver_t *driver,
void *data, int show_splash);
-Evas_Object *
+SYNTHPOD_SYMBOL_EXTERN Evas_Object *
sp_ui_widget_get(sp_ui_t *ui);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_refresh(sp_ui_t *ui);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_from_app(sp_ui_t *ui, const LV2_Atom *atom);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_bundle_new(sp_ui_t *ui);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_bundle_load(sp_ui_t *ui, const char *bundle_path, int update_path);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_bundle_save(sp_ui_t *ui, const char *bundle_path, int update_path);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_resize(sp_ui_t *ui, int w, int h);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_iterate(sp_ui_t *ui);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_run(sp_ui_t *ui);
-void
+SYNTHPOD_SYMBOL_EXTERN void
sp_ui_free(sp_ui_t *ui);
#endif // _SYNTHPOD_UI_H