} Attribute;
-static __inline LttvAttributeValue address_of_value(LttvAttributeType t,
- AttributeValue *v)
+static __inline__ LttvAttributeValue address_of_value(LttvAttributeType t,
+ AttributeValue *v)
{
LttvAttributeValue va;
}
-__inline GtkWidget *guicontrolflow_get_widget(
+__inline__ GtkWidget *guicontrolflow_get_widget(
ControlFlowData *control_flow_data)
{
return control_flow_data->top_widget ;
}
-__inline ProcessList *guicontrolflow_get_process_list
+__inline__ ProcessList *guicontrolflow_get_process_list
(ControlFlowData *control_flow_data)
{
return control_flow_data->process_list ;
guicontrolflow_destructor_full(ControlFlowData *control_flow_data);
void
guicontrolflow_destructor(ControlFlowData *control_flow_data);
-__inline GtkWidget *guicontrolflow_get_widget(
+__inline__ GtkWidget *guicontrolflow_get_widget(
ControlFlowData *control_flow_data);
-__inline ProcessList *guicontrolflow_get_process_list(
+__inline__ ProcessList *guicontrolflow_get_process_list(
ControlFlowData *control_flow_data);
*
* Convert from window pixel and time interval to an absolute time.
*/
-__inline void convert_pixels_to_time(
+__inline__ void convert_pixels_to_time(
gint width,
guint x,
TimeWindow time_window,
}
-__inline void convert_time_to_pixels(
+__inline__ void convert_time_to_pixels(
TimeWindow time_window,
LttTime time,
int width,
guint y,
guint height);
-__inline void convert_pixels_to_time(
+__inline__ void convert_pixels_to_time(
gint width,
guint x,
TimeWindow time_window,
LttTime *time);
-__inline void convert_time_to_pixels(
+__inline__ void convert_time_to_pixels(
TimeWindow time_window,
LttTime time,
gint width,
#define MAX_PATH_LEN 256
/* drawing hook functions */
-__inline gboolean draw_text( void *hook_data, void *call_data)
+__inline__ gboolean draw_text( void *hook_data, void *call_data)
{
PropertiesText *properties = (PropertiesText*)hook_data;
DrawContext *draw_context = (DrawContext*)call_data;
/* To speed up the process, search in already loaded icons list first. Only
* load it if not present.
*/
-__inline gboolean draw_icon( void *hook_data, void *call_data)
+__inline__ gboolean draw_icon( void *hook_data, void *call_data)
{
PropertiesIcon *properties = (PropertiesIcon*)hook_data;
DrawContext *draw_context = (DrawContext*)call_data;
return 0;
}
-__inline gboolean draw_line( void *hook_data, void *call_data)
+__inline__ gboolean draw_line( void *hook_data, void *call_data)
{
PropertiesLine *properties = (PropertiesLine*)hook_data;
DrawContext *draw_context = (DrawContext*)call_data;
return 0;
}
-__inline gboolean draw_arc( void *hook_data, void *call_data)
+__inline__ gboolean draw_arc( void *hook_data, void *call_data)
{
PropertiesArc *properties = (PropertiesArc*)hook_data;
DrawContext *draw_context = (DrawContext*)call_data;
return 0;
}
-__inline gboolean draw_bg( void *hook_data, void *call_data)
+__inline__ gboolean draw_bg( void *hook_data, void *call_data)
{
PropertiesBG *properties = (PropertiesBG*)hook_data;
DrawContext *draw_context = (DrawContext*)call_data;
* different items.
*/
-__inline gboolean draw_text( void *hook_data, void *call_data);
-__inline gboolean draw_icon( void *hook_data, void *call_data);
-__inline gboolean draw_line( void *hook_data, void *call_data);
-__inline gboolean draw_arc( void *hook_data, void *call_data);
-__inline gboolean draw_bg( void *hook_data, void *call_data);
+__inline__ gboolean draw_text( void *hook_data, void *call_data);
+__inline__ gboolean draw_icon( void *hook_data, void *call_data);
+__inline__ gboolean draw_line( void *hook_data, void *call_data);
+__inline__ gboolean draw_arc( void *hook_data, void *call_data);
+__inline__ gboolean draw_bg( void *hook_data, void *call_data);
#endif // _DRAW_ITEM_H
}
/* Function that selects the color of status&exemode line */
-static __inline PropertiesLine prepare_s_e_line(LttvProcessState *process)
+static __inline__ PropertiesLine prepare_s_e_line(LttvProcessState *process)
{
PropertiesLine prop_line;
prop_line.line_width = 2;
}
#if 0
-static __inline PropertiesLine prepare_status_line(LttvProcessState *process)
+static __inline__ PropertiesLine prepare_status_line(LttvProcessState *process)
{
PropertiesLine prop_line;
prop_line.line_width = 2;
}
#if 0
-static __inline PropertiesLine prepare_execmode_line(LttvProcessState *process)
+static __inline__ PropertiesLine prepare_execmode_line(LttvProcessState *process)
{
PropertiesLine prop_line;
prop_line.line_width = 1;
* draw items from the beginning of the read for it. If it is not
* present, it's a new process and it was not present : it will
* be added after the state update. */
+#ifdef EXTRA_CHECK
g_assert(lttv_traceset_number(tsc->ts) > 0);
-
+#endif //EXTRA_CHECK
/* tracefiles[0] is ok here, because we draw for every PID, and
* assume CPU 0 for PID 0 //FIXME */
LttvTracefileState *tfs =
* Methods to synchronize process list *
*****************************************************************************/
-static __inline guint get_cpu_number_from_name(GQuark name);
+static __inline__ guint get_cpu_number_from_name(GQuark name);
/* Enumeration of the columns */
enum
-static __inline gint get_cell_height(ProcessList *process_list, GtkTreeView *tree_view)
+static __inline__ gint get_cell_height(ProcessList *process_list, GtkTreeView *tree_view)
{
gint height = process_list->cell_height_cache;
if(height != -1) return height;
}
-guint processlist_get_height(ProcessList *process_list)
+__inline__ guint processlist_get_height(ProcessList *process_list)
{
return get_cell_height(process_list,
(GtkTreeView*)process_list->process_list_widget)
}
-__inline gint processlist_get_process_pixels( ProcessList *process_list,
+__inline__ gint processlist_get_process_pixels( ProcessList *process_list,
guint pid, guint cpu, LttTime *birth, guint trace_num,
guint *y,
guint *height,
}
-__inline gint processlist_get_pixels_from_data( ProcessList *process_list,
+__inline__ gint processlist_get_pixels_from_data( ProcessList *process_list,
ProcessInfo *process_info,
HashedProcessData *hashed_process_data,
guint *y,
}
-static __inline guint get_cpu_number_from_name(GQuark name)
+static __inline__ guint get_cpu_number_from_name(GQuark name)
{
const gchar *string;
char *begin;
int processlist_remove(ProcessList *process_list, guint pid, guint cpu,
LttTime *birth, guint trace_num);
-guint processlist_get_height(ProcessList *process_list);
+__inline__ guint processlist_get_height(ProcessList *process_list);
// Returns 0 on success
-__inline gint processlist_get_process_pixels(ProcessList *process_list,
+__inline__ gint processlist_get_process_pixels(ProcessList *process_list,
guint pid, guint cpu, LttTime *birth, guint trace_num,
guint *y, guint *height,
HashedProcessData **hashed_process_data);
-__inline gint processlist_get_pixels_from_data( ProcessList *process_list,
+__inline__ gint processlist_get_pixels_from_data( ProcessList *process_list,
ProcessInfo *process_info,
HashedProcessData *hashed_process_data,
guint *y,
* @return time window.
*/
-__inline TimeWindow lttvwindow_get_time_window(Tab *tab)
+__inline__ TimeWindow lttvwindow_get_time_window(Tab *tab)
{
return tab->time_window;
* @return the current tab's time interval.
*/
-__inline TimeWindow lttvwindow_get_time_window(Tab *tab);
+__inline__ TimeWindow lttvwindow_get_time_window(Tab *tab);
/**