From: Pierre Veyre Date: Tue, 24 Sep 2013 09:35:01 +0000 (+0200) Subject: Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid X-Git-Tag: v3_9_90~102 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/32b17a5b777ccee3c0e388cae5f6c0cca3dfc49c?hp=8ec4cd863b5356da6a1d5f5c6cd7e0b8c84c16be Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid --- diff --git a/src/msg/msg_io.c b/src/msg/msg_io.c index ed88e74596..24147acb42 100644 --- a/src/msg/msg_io.c +++ b/src/msg/msg_io.c @@ -242,6 +242,18 @@ xbt_dict_t MSG_storage_get_properties(msg_storage_t storage) return (simcall_storage_get_properties(storage)); } +/** \ingroup msg_storage_management + * \brief Change the value of a given storage property + * + * \param storage a storage + * \param name a property name + * \param value what to change the property to + * \param free_ctn the freeing function to use to kill the value on need + */ +void MSG_storage_set_property_value(msg_storage_t storage, const char *name, char *value,void_f_pvoid_t free_ctn) { + xbt_dict_set(MSG_storage_get_properties(storage), name, value,free_ctn); +} + /** \ingroup msg_storage_management * \brief Finds a msg_storage_t using its name. * \param name the name of a storage