- /* for registering application categories on top of platform */
- snprintf(state, 100, "b%s", category);
- if (TRACE_categorized ())
- pajeDefineVariableTypeWithColor(state, "LINK", state, final_color);
- snprintf(state, 100, "p%s", category);
- if (TRACE_categorized ())
- pajeDefineVariableTypeWithColor(state, "HOST", state, final_color);
-
- val_one = xbt_strdup("1");
- xbt_dict_set(created_categories, category, &val_one, xbt_free);
- return 0;
+//FIXME
+// - if (final) {
+// - //for m_process_t
+// - if (TRACE_msg_process_is_enabled())
+// - pajeDefineContainerType("process", type, "process");
+// - if (TRACE_msg_process_is_enabled())
+// - pajeDefineStateType("process-state", "process", "process-state");
+// -
+// - if (TRACE_msg_task_is_enabled())
+// - pajeDefineContainerType("task", type, "task");
+// - if (TRACE_msg_task_is_enabled())
+// - pajeDefineStateType("task-state", "task", "task-state");
+// - }
+
+ //define the type of this category on top of hosts and links
+ if (TRACE_categorized ()){
+ char new_type[INSTR_DEFAULT_STR_SIZE];
+ xbt_dict_cursor_t cursor = NULL;
+ char *type;
+ void *data;
+ xbt_dict_foreach(links_types, cursor, type, data) {
+ snprintf (new_type, INSTR_DEFAULT_STR_SIZE, "%s-%s", category, type);
+ pajeDefineVariableTypeWithColor(new_type, type, category, final_color);
+ }
+ cursor = NULL;
+ xbt_dict_foreach(hosts_types, cursor, type, data) {
+ snprintf (new_type, INSTR_DEFAULT_STR_SIZE, "%s-%s", category, type);
+ pajeDefineVariableTypeWithColor(new_type, type, category, final_color);
+ }
+ }