X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2759f3e06a1061e6dfdc9c44fa8913cf9e2bd9ad..1b6d36b7082f7cc657eb2473d1ac27d250954688:/src/surf/surf.c diff --git a/src/surf/surf.c b/src/surf/surf.c index be19fb7433..5fb7317eaa 100644 --- a/src/surf/surf.c +++ b/src/surf/surf.c @@ -4,8 +4,6 @@ /* 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 - #include "surf_private.h" #include "xbt/module.h" #include "mc/mc.h" @@ -13,6 +11,8 @@ #include "surf/surf_resource.h" #include "xbt/xbt_os_thread.h" +#include + XBT_LOG_NEW_CATEGORY(surf, "All SURF categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf, "Logging specific to SURF (kernel)"); @@ -369,6 +369,12 @@ static XBT_INLINE void routing_asr_host_free(void *p) xbt_free(elm); } +static XBT_INLINE void routing_asr_prop_free(void *p) +{ + xbt_dict_t elm = p; + xbt_dict_free(&elm); +} + void sg_version(int *ver_major,int *ver_minor,int *ver_patch) { *ver_major = SIMGRID_VERSION_MAJOR; *ver_minor = SIMGRID_VERSION_MINOR; @@ -388,6 +394,7 @@ void surf_init(int *argc, char **argv) XBT_DEBUG("Add routing levels"); ROUTING_HOST_LEVEL = xbt_lib_add_level(host_lib,routing_asr_host_free); ROUTING_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_host_free); + ROUTING_PROP_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_prop_free); XBT_DEBUG("Add SURF levels"); SURF_CPU_LEVEL = xbt_lib_add_level(host_lib,surf_resource_free);