Storage structure of MSG (msg_storage_t) and associated functions, inspired from POSIX.
(msg_storage_t) and the functions for managing it.
§ msg_storage_t
Storage datatype.
You should consider this as an opaque object.
§ MSG_storage_get_name()
Returns the name of the msg_storage_t.
This functions checks whether a storage is a valid pointer or not and return its name.
§ MSG_storage_get_free_size()
Returns the free space size of a storage element.
- Parameters
-
- Returns
- the free space size of the storage element (as a sg_size_t)
§ MSG_storage_get_used_size()
Returns the used space size of a storage element.
- Parameters
-
- Returns
- the used space size of the storage element (as a sg_size_t)
§ MSG_storage_get_properties()
Returns a xbt_dict_t consisting of the list of properties assigned to this storage.
- Parameters
-
- Returns
- a dict containing the properties
§ MSG_storage_set_property_value()
void MSG_storage_set_property_value |
( |
msg_storage_t |
storage, |
|
|
const char * |
name, |
|
|
char * |
value |
|
) |
| |
Change the value of a given storage property.
- Parameters
-
storage | a storage |
name | a property name |
value | what to change the property to |
§ MSG_storage_get_by_name()
Finds a msg_storage_t using its name.
- Parameters
-
name | the name of a storage |
- Returns
- the corresponding storage
§ MSG_storages_as_dynar()
Returns a dynar containing all the storage elements declared at a given point of time.
§ MSG_storage_set_data()
Set the user data of a msg_storage_t.
This functions attach data to storage if possible.
§ MSG_storage_get_content()
Returns the content (file list) of a msg_storage_t.
- Parameters
-
- Returns
- The content of this storage element as a dict (full path file => size)
§ MSG_storage_get_size()
Returns the size of a msg_storage_t.
- Parameters
-
- Returns
- The size of the storage
§ MSG_storage_get_host()
Returns the host name the storage is attached to.
This functions checks whether a storage is a valid pointer or not and return its name.