summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
05f387f)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4971
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
/* Properties related */
XBT_PUBLIC(xbt_dict_t) gras_process_properties(void);
/* Properties related */
XBT_PUBLIC(xbt_dict_t) gras_process_properties(void);
-XBT_PUBLIC(const char*) gras_process_property_value(char* name);
+XBT_PUBLIC(const char*) gras_process_property_value(const char* name);
XBT_PUBLIC(xbt_dict_t) gras_os_host_properties(void);
XBT_PUBLIC(xbt_dict_t) gras_os_host_properties(void);
-XBT_PUBLIC(const char*) gras_os_host_property_value(char* name);
+XBT_PUBLIC(const char*) gras_os_host_property_value(const char* name);
/*property handlers*/
XBT_PUBLIC(xbt_dict_t) MSG_host_get_properties(m_host_t host);
/*property handlers*/
XBT_PUBLIC(xbt_dict_t) MSG_host_get_properties(m_host_t host);
-XBT_PUBLIC(const char*) MSG_host_get_property_value(m_host_t host, char* name);
+XBT_PUBLIC(const char*) MSG_host_get_property_value(m_host_t host, const char* name);
XBT_PUBLIC(void) MSG_create_environment(const char *file);
XBT_PUBLIC(void) MSG_create_environment(const char *file);
/*property handlers*/
XBT_PUBLIC(xbt_dict_t) MSG_process_get_properties(m_process_t process);
/*property handlers*/
XBT_PUBLIC(xbt_dict_t) MSG_process_get_properties(m_process_t process);
-XBT_PUBLIC(const char*) MSG_process_get_property_value(m_process_t process, char* name);
+XBT_PUBLIC(const char*) MSG_process_get_property_value(m_process_t process, const char* name);
XBT_PUBLIC(MSG_error_t) MSG_process_suspend(m_process_t process);
XBT_PUBLIC(MSG_error_t) MSG_process_resume(m_process_t process);
XBT_PUBLIC(MSG_error_t) MSG_process_suspend(m_process_t process);
XBT_PUBLIC(MSG_error_t) MSG_process_resume(m_process_t process);
XBT_PUBLIC(double) SD_link_get_current_latency(SD_link_t link);
/*property handling functions*/
XBT_PUBLIC(xbt_dict_t) SD_link_get_properties(SD_link_t link);
XBT_PUBLIC(double) SD_link_get_current_latency(SD_link_t link);
/*property handling functions*/
XBT_PUBLIC(xbt_dict_t) SD_link_get_properties(SD_link_t link);
-XBT_PUBLIC(const char*) SD_link_get_property_value(SD_link_t link, char* name);
+XBT_PUBLIC(const char*) SD_link_get_property_value(SD_link_t link, const char* name);
/** @} */
/************************** Workstation handling ****************************/
/** @} */
/************************** Workstation handling ****************************/
XBT_PUBLIC(const char*) SD_workstation_get_name(SD_workstation_t workstation);
/*property handling functions*/
XBT_PUBLIC(xbt_dict_t) SD_workstation_get_properties(SD_workstation_t workstation);
XBT_PUBLIC(const char*) SD_workstation_get_name(SD_workstation_t workstation);
/*property handling functions*/
XBT_PUBLIC(xbt_dict_t) SD_workstation_get_properties(SD_workstation_t workstation);
-XBT_PUBLIC(const char*) SD_workstation_get_property_value(SD_workstation_t workstation, char* name);
+XBT_PUBLIC(const char*) SD_workstation_get_property_value(SD_workstation_t workstation, const char* name);
XBT_PUBLIC(const SD_link_t*) SD_route_get_list(SD_workstation_t src, SD_workstation_t dst);
XBT_PUBLIC(int) SD_route_get_size(SD_workstation_t src, SD_workstation_t dst);
XBT_PUBLIC(const SD_link_t*) SD_route_get_list(SD_workstation_t src, SD_workstation_t dst);
XBT_PUBLIC(int) SD_route_get_size(SD_workstation_t src, SD_workstation_t dst);
}
/** @brief retrieve the value of a given process property (or NULL if not defined) */
}
/** @brief retrieve the value of a given process property (or NULL if not defined) */
-const char* gras_process_property_value(char* name) {
+const char* gras_process_property_value(const char* name) {
return xbt_dict_get_or_null(SIMIX_process_get_properties(SIMIX_process_self()), name);
}
return xbt_dict_get_or_null(SIMIX_process_get_properties(SIMIX_process_self()), name);
}
/** @brief retrieve the value of a given host property (or NULL if not defined) */
/** @brief retrieve the value of a given host property (or NULL if not defined) */
-const char* gras_os_host_property_value(char* name) {
+const char* gras_os_host_property_value(const char* name) {
return xbt_dict_get_or_null(SIMIX_host_get_properties(SIMIX_process_get_host(SIMIX_process_self())), name);
}
return xbt_dict_get_or_null(SIMIX_host_get_properties(SIMIX_process_get_host(SIMIX_process_self())), name);
}
* \param name a property name
* \return value of a property (or NULL if property not set)
*/
* \param name a property name
* \return value of a property (or NULL if property not set)
*/
-const char* MSG_host_get_property_value(m_host_t host, char* name)
+const char* MSG_host_get_property_value(m_host_t host, const char* name)
{
return xbt_dict_get_or_null(MSG_host_get_properties(host), name);
}
{
return xbt_dict_get_or_null(MSG_host_get_properties(host), name);
}
* \param name a property name
* \return value of a property (or NULL if the property is not set)
*/
* \param name a property name
* \return value of a property (or NULL if the property is not set)
*/
-const char* MSG_process_get_property_value(m_process_t process, char* name)
+const char* MSG_process_get_property_value(m_process_t process, const char* name)
{
return xbt_dict_get_or_null(MSG_process_get_properties(process), name);
}
{
return xbt_dict_get_or_null(MSG_process_get_properties(process), name);
}
* \param name a property name
* \return value of a property (or NULL if property not set)
*/
* \param name a property name
* \return value of a property (or NULL if property not set)
*/
-const char* SD_link_get_property_value(SD_link_t link, char* name)
+const char* SD_link_get_property_value(SD_link_t link, const char* name)
{
return xbt_dict_get_or_null(SD_link_get_properties(link), name);
}
{
return xbt_dict_get_or_null(SD_link_get_properties(link), name);
}
* \param name a property name
* \return value of a property (or NULL if property not set)
*/
* \param name a property name
* \return value of a property (or NULL if property not set)
*/
-const char* SD_workstation_get_property_value(SD_workstation_t ws, char* name)
+const char* SD_workstation_get_property_value(SD_workstation_t ws, const char* name)
{
return xbt_dict_get_or_null(SD_workstation_get_properties(ws), name);
}
{
return xbt_dict_get_or_null(SD_workstation_get_properties(ws), name);
}