-/* Copyright (c) 2012. The SimGrid Team.
+/* Copyright (c) 2012, 2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include "instr/instr_private.h"
#ifdef HAVE_TRACING
return ret;
}
-type_t PJ_type_event_new (const char *name, const char *color, type_t father)
+type_t PJ_type_event_new (const char *name, type_t father)
{
if (name == NULL){
THROWF (tracing_error, 0, "can't create an event type with a NULL name");
}
- type_t ret = NULL;
-
- char white[INSTR_DEFAULT_STR_SIZE] = "1 1 1";
- if (!color){
- ret = newType (name, name, white, TYPE_EVENT, father);
- }else{
- ret = newType (name, name, color, TYPE_EVENT, father);
- }
+ type_t ret = newType (name, name, NULL, TYPE_EVENT, father);
XBT_DEBUG("EventType %s(%s), child of %s(%s)", ret->name, ret->id, father->name, father->id);
new_pajeDefineEventType(ret);
return ret;