-/*
- * jed_simgrid_platform.c
- *
- * Created on: Nov 30, 2010
- * Author: sascha
- */
+/* Copyright (c) 2010-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. */
#include <stdlib.h>
#include <string.h>
xbt_free(container);
}
-void jed_simgrid_create_container(jed_simgrid_container_t *container, char *name) {
+void jed_simgrid_create_container(jed_simgrid_container_t *container,
+ const char *name)
+{
xbt_assert( name != NULL );
*container = xbt_new0(s_jed_simgrid_container_t,1);
parent->is_lowest = 1;
xbt_dynar_free(&parent->container_children);
parent->container_children = NULL;
- parent->name2id = xbt_dict_new_homogeneous(xbt_free);
+ parent->name2id = xbt_dict_new_homogeneous(xbt_free_f);
parent->last_id = 0;
parent->resource_list = xbt_dynar_new(sizeof(char *), NULL);