X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6760cb07d6b57be16928d95339d71e57c4e24f36..6aac8bb90869cf0dccc9caf03be425af62ee2813:/src/msg/deployment.c diff --git a/src/msg/deployment.c b/src/msg/deployment.c index 9d662f2916..fadf887a22 100644 --- a/src/msg/deployment.c +++ b/src/msg/deployment.c @@ -8,7 +8,6 @@ #include "xbt/sysdep.h" #include "xbt/log.h" - /** \ingroup msg_easier_life * \brief An application deployer. * @@ -27,7 +26,7 @@ void MSG_launch_application(const char *file) { - xbt_assert0(msg_global, + xbt_assert(msg_global, "MSG_global_init_args has to be called before MSG_launch_application."); SIMIX_launch_application(file); @@ -71,3 +70,13 @@ xbt_main_func_t MSG_get_registered_function(const char *name) { return SIMIX_get_registered_function(name); } + +/** + * \brief register functions bypassing the parser + */ + +void MSG_set_function(const char *host_id, const char *function_name, + xbt_dynar_t arguments) +{ + SIMIX_process_set_function(host_id, function_name, arguments, -1, -1); +}