From f9240312451df4ff9fc7b0d4cfb159a03d7dc2c3 Mon Sep 17 00:00:00 2001 From: pmf Date: Wed, 11 Jul 2007 00:42:00 +0000 Subject: [PATCH] compile gui plugins with -fvisibility=hidden define new __EXPORT to mark a function visible outside the plugin add __EXPORT on appropriate symbols in gui plugins git-svn-id: http://ltt.polymtl.ca/svn@2549 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/compiler.h | 1 + ltt/branches/poly/lttv/Makefile.am | 1 + .../lttv/modules/gui/controlflow/Makefile.am | 1 + .../modules/gui/detailedevents/Makefile.am | 1 + .../modules/gui/diskperformance/Makefile.am | 1 + .../poly/lttv/modules/gui/filter/Makefile.am | 1 + .../lttv/modules/gui/histogram/Makefile.am | 1 + .../lttv/modules/gui/interrupts/Makefile.am | 1 + .../gui/lttvwindow/lttvwindow/Makefile.am | 1 + .../gui/lttvwindow/lttvwindow/callbacks.c | 2 +- .../gui/lttvwindow/lttvwindow/init_module.c | 3 +- .../gui/lttvwindow/lttvwindow/lttv_plugin.c | 2 +- .../lttvwindow/lttvwindow/lttv_plugin_tab.c | 2 +- .../gui/lttvwindow/lttvwindow/lttvwindow.c | 63 +++++++++---------- .../lttvwindow/lttvwindow/lttvwindowtraces.c | 20 +++--- .../gui/lttvwindow/lttvwindow/support.c | 6 +- .../lttv/modules/gui/statistics/Makefile.am | 1 + .../lttv/modules/gui/tracecontrol/Makefile.am | 1 + .../lttv/modules/gui/tutorial/Makefile.am | 1 + 19 files changed, 62 insertions(+), 48 deletions(-) diff --git a/ltt/branches/poly/ltt/compiler.h b/ltt/branches/poly/ltt/compiler.h index 1ab188f8..2b496a88 100644 --- a/ltt/branches/poly/ltt/compiler.h +++ b/ltt/branches/poly/ltt/compiler.h @@ -48,5 +48,6 @@ ((gint32)(b) - (gint32)(a) <= 0)) #define guint32_before_eq(a,b) guint32_after_eq(b,a) +#define __EXPORT __attribute__ ((visibility ("default"))) #endif //COMPILER_H diff --git a/ltt/branches/poly/lttv/Makefile.am b/ltt/branches/poly/lttv/Makefile.am index 8370b90a..8e473bb2 100644 --- a/ltt/branches/poly/lttv/Makefile.am +++ b/ltt/branches/poly/lttv/Makefile.am @@ -2,3 +2,4 @@ # themselves to libraries compiled here but not installed in the system. SUBDIRS = lttv modules +modules_CFLAGS = -fvisibility=hidden diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/Makefile.am b/ltt/branches/poly/lttv/modules/gui/controlflow/Makefile.am index 82e30549..cd98834a 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/Makefile.am @@ -24,6 +24,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/Makefile.am b/ltt/branches/poly/lttv/modules/gui/detailedevents/Makefile.am index a4220687..20cfacef 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/diskperformance/Makefile.am b/ltt/branches/poly/lttv/modules/gui/diskperformance/Makefile.am index 06d29d88..572c1740 100644 --- a/ltt/branches/poly/lttv/modules/gui/diskperformance/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/diskperformance/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/filter/Makefile.am b/ltt/branches/poly/lttv/modules/gui/filter/Makefile.am index 691c4607..89819a25 100644 --- a/ltt/branches/poly/lttv/modules/gui/filter/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/filter/Makefile.am @@ -6,6 +6,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/histogram/Makefile.am b/ltt/branches/poly/lttv/modules/gui/histogram/Makefile.am index 0003d500..3cb65bb9 100644 --- a/ltt/branches/poly/lttv/modules/gui/histogram/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/histogram/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/interrupts/Makefile.am b/ltt/branches/poly/lttv/modules/gui/interrupts/Makefile.am index 2f9b2ea0..00c1d8f7 100644 --- a/ltt/branches/poly/lttv/modules/gui/interrupts/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/interrupts/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/Makefile.am b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/Makefile.am index bb4263ac..243bd4f7 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/Makefile.am @@ -2,6 +2,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 98f58d60..495a84c9 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -4852,7 +4852,7 @@ gboolean execute_events_requests(Tab *tab) } -void create_main_window_with_trace_list(GSList *traces) +__EXPORT void create_main_window_with_trace_list(GSList *traces) { GSList *iter = NULL; diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c index 1e2da6a3..c964481d 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c @@ -49,7 +49,8 @@ #include -LttvTraceInfo LTTV_TRACES, +__EXPORT LttvTraceInfo + LTTV_TRACES, LTTV_COMPUTATION, LTTV_VIEWER_CONSTRUCTORS, LTTV_REQUESTS_QUEUE, diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin.c index 32eb60b0..f7b4ded4 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin.c @@ -63,7 +63,7 @@ lttv_plugin_get_type (void) /* implementation in the source file */ -void lttv_plugin_update_filter (LttvPlugin *self, LttvFilter *filter) +__EXPORT void lttv_plugin_update_filter (LttvPlugin *self, LttvFilter *filter) { LTTV_PLUGIN_GET_CLASS (self)->update_filter (self, filter); } diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin_tab.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin_tab.c index 4571f653..2e641387 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin_tab.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttv_plugin_tab.c @@ -57,7 +57,7 @@ lttv_plugin_tab_init (GTypeInstance *instance, gpointer g_class) } -GType +__EXPORT GType lttv_plugin_tab_get_type (void) { static GType type = 0; diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index 7d318245..268c8156 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -51,7 +51,7 @@ extern GSList * g_main_window_list; -gint lttvwindow_preempt_count = 0; +__EXPORT gint lttvwindow_preempt_count = 0; /* set_time_window * @@ -263,7 +263,7 @@ void remove_menu_constructor(MainWindow *mw, lttvwindow_viewer_constructor viewe * @param view_constructor constructor of the viewer. */ -void lttvwindow_register_constructor +__EXPORT void lttvwindow_register_constructor (char * name, char * menu_path, char * menu_text, @@ -339,7 +339,7 @@ void lttvwindow_register_constructor */ -void lttvwindow_unregister_constructor +__EXPORT void lttvwindow_unregister_constructor (lttvwindow_viewer_constructor view_constructor) { LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes()); @@ -403,7 +403,7 @@ void lttvwindow_unregister_constructor * @param hook hook function of the viewer. * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_time_window_notify(Tab *tab, +__EXPORT void lttvwindow_register_time_window_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -427,7 +427,7 @@ void lttvwindow_register_time_window_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_time_window_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_time_window_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -447,7 +447,7 @@ void lttvwindow_unregister_time_window_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_traceset_notify(Tab *tab, +__EXPORT void lttvwindow_register_traceset_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -471,7 +471,7 @@ void lttvwindow_register_traceset_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_traceset_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_traceset_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -491,7 +491,7 @@ void lttvwindow_unregister_traceset_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_redraw_notify(Tab *tab, +__EXPORT void lttvwindow_register_redraw_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -515,7 +515,7 @@ void lttvwindow_register_redraw_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_redraw_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_redraw_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -541,7 +541,7 @@ void lttvwindow_unregister_redraw_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_continue_notify(Tab *tab, +__EXPORT void lttvwindow_register_continue_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -566,7 +566,7 @@ void lttvwindow_register_continue_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_continue_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_continue_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -587,7 +587,7 @@ void lttvwindow_unregister_continue_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_filter_notify(Tab *tab, +__EXPORT void lttvwindow_register_filter_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -611,7 +611,7 @@ void lttvwindow_register_filter_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_filter_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_filter_notify(Tab *tab, LttvHook hook, gpointer hook_data) { @@ -632,7 +632,7 @@ void lttvwindow_unregister_filter_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_current_time_notify(Tab *tab, +__EXPORT void lttvwindow_register_current_time_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -656,7 +656,7 @@ void lttvwindow_register_current_time_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_current_time_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_current_time_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -676,7 +676,7 @@ void lttvwindow_unregister_current_time_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_register_current_position_notify(Tab *tab, +__EXPORT void lttvwindow_register_current_position_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -700,7 +700,7 @@ void lttvwindow_register_current_position_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -void lttvwindow_unregister_current_position_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_current_position_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -811,8 +811,8 @@ void lttvwindow_unregister_dividor(Tab *tab, * @param time_interval a pointer where time interval is stored. */ -void lttvwindow_report_time_window(Tab *tab, - TimeWindow time_window) +__EXPORT void lttvwindow_report_time_window(Tab *tab, + TimeWindow time_window) { //set_time_window(tab, time_window); //set_time_window_adjustment(tab, time_window); @@ -870,7 +870,7 @@ void lttvwindow_report_time_window(Tab *tab, * @param time a pointer where time is stored. */ -void lttvwindow_report_current_time(Tab *tab, +__EXPORT void lttvwindow_report_current_time(Tab *tab, LttTime time) { LttvAttributeValue value; @@ -887,7 +887,7 @@ void lttvwindow_report_current_time(Tab *tab, * @param time a pointer where time is stored. */ -void lttvwindow_report_current_position(Tab *tab, +__EXPORT void lttvwindow_report_current_position(Tab *tab, LttvTracesetContextPosition *pos) { LttvAttributeValue value; @@ -934,8 +934,8 @@ void lttvwindow_report_dividor(Tab *tab, gint position) * @param events_requested the structure of request from. */ -void lttvwindow_events_request(Tab *tab, - EventsRequest *events_request) +__EXPORT void lttvwindow_events_request(Tab *tab, + EventsRequest *events_request) { tab->events_requests = g_slist_append(tab->events_requests, events_request); @@ -970,7 +970,7 @@ gint find_viewer (const EventsRequest *a, gconstpointer b) } -void lttvwindow_events_request_remove_all(Tab *tab, +__EXPORT void lttvwindow_events_request_remove_all(Tab *tab, gconstpointer viewer) { GSList *element = tab->events_requests; @@ -1011,7 +1011,7 @@ void lttvwindow_events_request_remove_all(Tab *tab, * @return : TRUE is events requests are pending, else FALSE. */ -gboolean lttvwindow_events_request_pending(Tab *tab) +__EXPORT gboolean lttvwindow_events_request_pending(Tab *tab) { GSList *element = tab->events_requests; @@ -1029,7 +1029,7 @@ gboolean lttvwindow_events_request_pending(Tab *tab) * @return time window. */ -TimeWindow lttvwindow_get_time_window(Tab *tab) +__EXPORT TimeWindow lttvwindow_get_time_window(Tab *tab) { return tab->time_window; } @@ -1043,7 +1043,7 @@ TimeWindow lttvwindow_get_time_window(Tab *tab) * @return time */ -LttTime lttvwindow_get_current_time(Tab *tab) +__EXPORT LttTime lttvwindow_get_current_time(Tab *tab) { return tab->current_time; } @@ -1055,7 +1055,7 @@ LttTime lttvwindow_get_current_time(Tab *tab) * * returns the current filter */ -LttvFilter *lttvwindow_get_filter(Tab *tab) +__EXPORT LttvFilter *lttvwindow_get_filter(Tab *tab) { return g_object_get_data(G_OBJECT(tab->vbox), "filter"); } @@ -1094,13 +1094,12 @@ void lttvwindow_report_filter(Tab *tab, LttvFilter *filter) * @param tab viewer's tab */ -LttvTracesetStats* lttvwindow_get_traceset_stats(Tab *tab) +__EXPORT LttvTracesetStats* lttvwindow_get_traceset_stats(Tab *tab) { return tab->traceset_info->traceset_context; } - -LttvTracesetContext* lttvwindow_get_traceset_context(Tab *tab) +__EXPORT LttvTracesetContext* lttvwindow_get_traceset_context(Tab *tab) { return (LttvTracesetContext*)tab->traceset_info->traceset_context; } @@ -1148,7 +1147,7 @@ void events_request_free(EventsRequest *events_request) -GtkWidget *main_window_get_widget(Tab *tab) +__EXPORT GtkWidget *main_window_get_widget(Tab *tab) { return tab->mw->mwindow; } diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c index 87beead6..eb449f03 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindowtraces.c @@ -72,7 +72,7 @@ gboolean lttvwindowtraces_process_pending_requests(LttvTrace *trace); * NULL is returned if the trace is not present */ -LttvTrace *lttvwindowtraces_get_trace_by_name(gchar *path) +__EXPORT LttvTrace *lttvwindowtraces_get_trace_by_name(gchar *path) { guint i; @@ -97,7 +97,7 @@ LttvTrace *lttvwindowtraces_get_trace_by_name(gchar *path) /* Get a trace by its number identifier */ -LttvTrace *lttvwindowtraces_get_trace(guint num) +__EXPORT LttvTrace *lttvwindowtraces_get_trace(guint num) { LttvAttribute *g_attribute = lttv_global_attributes(); LttvAttribute *attribute; @@ -122,7 +122,7 @@ LttvTrace *lttvwindowtraces_get_trace(guint num) /* Total number of traces */ -guint lttvwindowtraces_get_number() +__EXPORT guint lttvwindowtraces_get_number() { LttvAttribute *g_attribute = lttv_global_attributes(); LttvAttribute *attribute; @@ -316,7 +316,7 @@ static void destroy_dialog(BackgroundRequest *bg_req) * hooks. */ -void lttvwindowtraces_background_request_queue +__EXPORT void lttvwindowtraces_background_request_queue (GtkWidget *widget, LttvTrace *trace, gchar *module_name) { BackgroundRequest *bg_req; @@ -433,7 +433,7 @@ void lttvwindowtraces_background_request_remove * */ -gboolean lttvwindowtraces_background_request_find +__EXPORT gboolean lttvwindowtraces_background_request_find (LttvTrace *trace, gchar *module_name) { LttvAttribute *attribute = lttv_trace_attribute(trace); @@ -471,7 +471,7 @@ gboolean lttvwindowtraces_background_request_find * @param notify Hook to call when the notify position is passed */ -void lttvwindowtraces_background_notify_queue +__EXPORT void lttvwindowtraces_background_notify_queue (gpointer owner, LttvTrace *trace, LttTime notify_time, @@ -525,7 +525,7 @@ void lttvwindowtraces_background_notify_queue * @param notify Hook to call when the notify position is passed */ -void lttvwindowtraces_background_notify_current +__EXPORT void lttvwindowtraces_background_notify_current (gpointer owner, LttvTrace *trace, LttTime notify_time, @@ -586,7 +586,7 @@ static void notify_request_free(BackgroundNotify *notify_req) * @param owner owner of the background notification */ -void lttvwindowtraces_background_notify_remove(gpointer owner) +__EXPORT void lttvwindowtraces_background_notify_remove(gpointer owner) { guint i; @@ -872,7 +872,7 @@ void lttvwindowtraces_unset_in_progress(LttvAttributeName module_name, LTTV_IN_PROGRESS); } -gboolean lttvwindowtraces_get_in_progress(LttvAttributeName module_name, +__EXPORT gboolean lttvwindowtraces_get_in_progress(LttvAttributeName module_name, LttvTrace *trace) { LttvAttribute *attribute = lttv_trace_attribute(trace); @@ -923,7 +923,7 @@ void lttvwindowtraces_unset_ready(LttvAttributeName module_name, LTTV_READY); } -gboolean lttvwindowtraces_get_ready(LttvAttributeName module_name, +__EXPORT gboolean lttvwindowtraces_get_ready(LttvAttributeName module_name, LttvTrace *trace) { LttvAttribute *attribute = lttv_trace_attribute(trace); diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/support.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/support.c index fddd4cfe..ce92ef05 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/support.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/support.c @@ -32,9 +32,11 @@ #include +#include + #include "support.h" -GtkWidget* +__EXPORT GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name) { @@ -91,7 +93,7 @@ find_pixmap_file (const gchar *filename) } /* This is an internally used function to create pixmaps. */ -GtkWidget* +__EXPORT GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename) { diff --git a/ltt/branches/poly/lttv/modules/gui/statistics/Makefile.am b/ltt/branches/poly/lttv/modules/gui/statistics/Makefile.am index 60ac0c96..912dfba2 100644 --- a/ltt/branches/poly/lttv/modules/gui/statistics/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/statistics/Makefile.am @@ -6,6 +6,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow diff --git a/ltt/branches/poly/lttv/modules/gui/tracecontrol/Makefile.am b/ltt/branches/poly/lttv/modules/gui/tracecontrol/Makefile.am index f16b0185..42925da7 100644 --- a/ltt/branches/poly/lttv/modules/gui/tracecontrol/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/tracecontrol/Makefile.am @@ -7,6 +7,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) AM_CFLAGS += -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\" +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow LIBS += $(UTIL_LIBS) diff --git a/ltt/branches/poly/lttv/modules/gui/tutorial/Makefile.am b/ltt/branches/poly/lttv/modules/gui/tutorial/Makefile.am index 89446d09..ab5513bc 100644 --- a/ltt/branches/poly/lttv/modules/gui/tutorial/Makefile.am +++ b/ltt/branches/poly/lttv/modules/gui/tutorial/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = $(GLIB_CFLAGS) AM_CFLAGS += $(GTK_CFLAGS) +AM_CFLAGS += -fvisibility=hidden LIBS += $(GLIB_LIBS) LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow -- 2.34.1