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
19 files changed:
((gint32)(b) - (gint32)(a) <= 0))
#define guint32_before_eq(a,b) guint32_after_eq(b,a)
((gint32)(b) - (gint32)(a) <= 0))
#define guint32_before_eq(a,b) guint32_after_eq(b,a)
+#define __EXPORT __attribute__ ((visibility ("default")))
# themselves to libraries compiled here but not installed in the system.
SUBDIRS = lttv modules
# themselves to libraries compiled here but not installed in the system.
SUBDIRS = lttv modules
+modules_CFLAGS = -fvisibility=hidden
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
+AM_CFLAGS += -fvisibility=hidden
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS)
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS)
-void create_main_window_with_trace_list(GSList *traces)
+__EXPORT void create_main_window_with_trace_list(GSList *traces)
-LttvTraceInfo LTTV_TRACES,
+__EXPORT LttvTraceInfo
+ LTTV_TRACES,
LTTV_COMPUTATION,
LTTV_VIEWER_CONSTRUCTORS,
LTTV_REQUESTS_QUEUE,
LTTV_COMPUTATION,
LTTV_VIEWER_CONSTRUCTORS,
LTTV_REQUESTS_QUEUE,
/* implementation in the source file */
/* 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);
}
{
LTTV_PLUGIN_GET_CLASS (self)->update_filter (self, filter);
}
lttv_plugin_tab_get_type (void)
{
static GType type = 0;
lttv_plugin_tab_get_type (void)
{
static GType type = 0;
extern GSList * g_main_window_list;
extern GSList * g_main_window_list;
-gint lttvwindow_preempt_count = 0;
+__EXPORT gint lttvwindow_preempt_count = 0;
* @param view_constructor constructor of the viewer.
*/
* @param view_constructor constructor of the viewer.
*/
-void lttvwindow_register_constructor
+__EXPORT void lttvwindow_register_constructor
(char * name,
char * menu_path,
char * menu_text,
(char * name,
char * menu_path,
char * menu_text,
-void lttvwindow_unregister_constructor
+__EXPORT void lttvwindow_unregister_constructor
(lttvwindow_viewer_constructor view_constructor)
{
LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
(lttvwindow_viewer_constructor view_constructor)
{
LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
* @param hook hook function of the viewer.
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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)
{
LttvHook hook,
gpointer hook_data)
{
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param hook_data hook data associated with the hook function.
*/
* @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;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
* @param time_interval a pointer where time interval is stored.
*/
* @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);
{
//set_time_window(tab, time_window);
//set_time_window_adjustment(tab, time_window);
* @param time a pointer where time is stored.
*/
* @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;
LttTime time)
{
LttvAttributeValue value;
* @param time a pointer where time is stored.
*/
* @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;
LttvTracesetContextPosition *pos)
{
LttvAttributeValue value;
* @param events_requested the structure of request from.
*/
* @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);
{
tab->events_requests = g_slist_append(tab->events_requests, events_request);
-void lttvwindow_events_request_remove_all(Tab *tab,
+__EXPORT void lttvwindow_events_request_remove_all(Tab *tab,
gconstpointer viewer)
{
GSList *element = tab->events_requests;
gconstpointer viewer)
{
GSList *element = tab->events_requests;
* @return : TRUE is events requests are pending, else FALSE.
*/
* @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;
{
GSList *element = tab->events_requests;
* @return time window.
*/
* @return time window.
*/
-TimeWindow lttvwindow_get_time_window(Tab *tab)
+__EXPORT TimeWindow lttvwindow_get_time_window(Tab *tab)
{
return tab->time_window;
}
{
return tab->time_window;
}
-LttTime lttvwindow_get_current_time(Tab *tab)
+__EXPORT LttTime lttvwindow_get_current_time(Tab *tab)
{
return tab->current_time;
}
{
return tab->current_time;
}
*
* returns the current filter
*/
*
* 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");
}
{
return g_object_get_data(G_OBJECT(tab->vbox), "filter");
}
* @param tab viewer's tab
*/
* @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;
}
{
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;
}
{
return (LttvTracesetContext*)tab->traceset_info->traceset_context;
}
-GtkWidget *main_window_get_widget(Tab *tab)
+__EXPORT GtkWidget *main_window_get_widget(Tab *tab)
{
return tab->mw->mwindow;
}
{
return tab->mw->mwindow;
}
* NULL is returned if the trace is not present
*/
* 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)
/* Get a trace by its number identifier */
/* 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;
{
LttvAttribute *g_attribute = lttv_global_attributes();
LttvAttribute *attribute;
/* Total number of traces */
/* Total number of traces */
-guint lttvwindowtraces_get_number()
+__EXPORT guint lttvwindowtraces_get_number()
{
LttvAttribute *g_attribute = lttv_global_attributes();
LttvAttribute *attribute;
{
LttvAttribute *g_attribute = lttv_global_attributes();
LttvAttribute *attribute;
-void lttvwindowtraces_background_request_queue
+__EXPORT void lttvwindowtraces_background_request_queue
(GtkWidget *widget, LttvTrace *trace, gchar *module_name)
{
BackgroundRequest *bg_req;
(GtkWidget *widget, LttvTrace *trace, gchar *module_name)
{
BackgroundRequest *bg_req;
-gboolean lttvwindowtraces_background_request_find
+__EXPORT gboolean lttvwindowtraces_background_request_find
(LttvTrace *trace, gchar *module_name)
{
LttvAttribute *attribute = lttv_trace_attribute(trace);
(LttvTrace *trace, gchar *module_name)
{
LttvAttribute *attribute = lttv_trace_attribute(trace);
* @param notify Hook to call when the notify position is passed
*/
* @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,
(gpointer owner,
LttvTrace *trace,
LttTime notify_time,
* @param notify Hook to call when the notify position is passed
*/
* @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,
(gpointer owner,
LttvTrace *trace,
LttTime notify_time,
* @param owner owner of the background notification
*/
* @param owner owner of the background notification
*/
-void lttvwindowtraces_background_notify_remove(gpointer owner)
+__EXPORT void lttvwindowtraces_background_notify_remove(gpointer owner)
-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);
LttvTrace *trace)
{
LttvAttribute *attribute = lttv_trace_attribute(trace);
-gboolean lttvwindowtraces_get_ready(LttvAttributeName module_name,
+__EXPORT gboolean lttvwindowtraces_get_ready(LttvAttributeName module_name,
LttvTrace *trace)
{
LttvAttribute *attribute = lttv_trace_attribute(trace);
LttvTrace *trace)
{
LttvAttribute *attribute = lttv_trace_attribute(trace);
+#include <ltt/compiler.h>
+
lookup_widget (GtkWidget *widget,
const gchar *widget_name)
{
lookup_widget (GtkWidget *widget,
const gchar *widget_name)
{
}
/* This is an internally used function to create pixmaps. */
}
/* This is an internally used function to create pixmaps. */
create_pixmap (GtkWidget *widget,
const gchar *filename)
{
create_pixmap (GtkWidget *widget,
const gchar *filename)
{
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
AM_CFLAGS += -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\"
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)
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
LIBS += $(UTIL_LIBS)
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
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
LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_builddir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow