X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4502ea93a773951ce03aec68f7e16586bd28d8ac..0caba370ea99d7ba91606850d0ee8657f39bdbe1:/src/surf/surf_resource.c diff --git a/src/surf/surf_resource.c b/src/surf/surf_resource.c deleted file mode 100644 index aa36741a8e..0000000000 --- a/src/surf/surf_resource.c +++ /dev/null @@ -1,25 +0,0 @@ - -/* Copyright (c) 2009 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 "surf_private.h" -#include "xbt/dict.h" - -void surf_resource_free(void* r) { - surf_resource_t resource = r; - if (resource->name) - free(resource->name); - if (resource->properties) - xbt_dict_free(&resource->properties); - free(resource); -} - -const char *surf_resource_name(const void *resource) { - return ((surf_resource_t)resource)->name; -} - -xbt_dict_t surf_resource_properties(const void *resource) { - return ((surf_resource_t)resource)->properties; -}