* Methods to synchronize process list *
*****************************************************************************/
-static guint get_cpu_number_from_name(GQuark name);
+static __inline guint get_cpu_number_from_name(GQuark name);
/* Enumeration of the columns */
enum
}
-guint hash_fct(gconstpointer key)
+static guint hash_fct(gconstpointer key)
{
return ((ProcessInfo*)key)->pid;
}
-gboolean equ_fct(gconstpointer a, gconstpointer b)
+static gboolean equ_fct(gconstpointer a, gconstpointer b)
{
const ProcessInfo *pa = (const ProcessInfo*)a;
const ProcessInfo *pb = (const ProcessInfo*)b;
-__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;
}
-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,
}
-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 guint get_cpu_number_from_name(GQuark name)
+static __inline guint get_cpu_number_from_name(GQuark name)
{
- /* remember / */
const gchar *string;
char *begin;
guint cpu;