X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f365d61a634d854a3244979c0524de3cf3a74f72..4ce83dbcd75d127f670498bd137f4216d7f646c9:/examples/msg/properties/msg_prop.c diff --git a/examples/msg/properties/msg_prop.c b/examples/msg/properties/msg_prop.c index 051ba16380..63f1e5fdc4 100644 --- a/examples/msg/properties/msg_prop.c +++ b/examples/msg/properties/msg_prop.c @@ -14,6 +14,18 @@ #include #include +/** @addtogroup MSG_examples + * + * - properties/msg_prop.c Attaching arbitrary informations to + * host, processes and such, and retrieving them with @ref + * MSG_host_get_properties, @ref MSG_host_get_property_value, @ref + * MSG_process_get_properties and @ref + * MSG_process_get_property_value. Also make sure to read the + * platform and deployment XML files to see how to declare these + * data. + * + */ + XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Property test"); int alice(int argc, char *argv[]); @@ -62,7 +74,7 @@ static void test_host(const char*hostname) XBT_INFO(" Property: %s old value: %s", exist, value); /* Restore the value for the next test */ - xbt_dict_set(props, exist, xbt_strdup("180"), xbt_free_f); + xbt_dict_set(props, exist, xbt_strdup("180"), NULL); } int alice(int argc, char *argv[]) { /* Dump what we have on the current host */