X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f365d61a634d854a3244979c0524de3cf3a74f72..693f30b46244c152cd79cdf3ad35d4a79b866c9c:/examples/msg/properties/msg_prop.c diff --git a/examples/msg/properties/msg_prop.c b/examples/msg/properties/msg_prop.c index 051ba16380..1889aa63e5 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 */ @@ -116,7 +128,7 @@ int main(int argc, char *argv[]) { MSG_error_t res = MSG_OK; - MSG_global_init(&argc, argv); + MSG_init(&argc, argv); if (argc < 3) { printf("Usage: %s platform_file deployment_file\n", argv[0]); printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);