X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8400efb989370b37b801ed83f85384040a457278..4a201b7ceece70d2bc461ac48c8b746a36d07243:/src/msg/deployment.c diff --git a/src/msg/deployment.c b/src/msg/deployment.c index cb083ba115..93691d6616 100644 --- a/src/msg/deployment.c +++ b/src/msg/deployment.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* Copyright (c) 2002-2007 Arnaud Legrand. */ /* Copyright (c) 2007 Bruno Donassolo. */ /* All rights reserved. */ @@ -19,7 +17,7 @@ * \param file a filename of a xml description of the application. This file * follows this DTD : * - * \include surfxml.dtd + * \include simgrid.dtd * * Here is a small example of such a platform * @@ -31,7 +29,7 @@ void MSG_launch_application(const char *file) { xbt_assert0(msg_global, - "MSG_global_init_args has to be called before MSG_launch_application."); + "MSG_global_init_args has to be called before MSG_launch_application."); SIMIX_launch_application(file); @@ -52,6 +50,17 @@ void MSG_function_register(const char *name, xbt_main_func_t code) return; } +/** \ingroup msg_easier_life + * \brief Registers a function as the default main function of agents. + * + * Registers a code function as being the default value. This function will get used by MSG_launch_application() when there is no registered function of the requested name in. + * \param code the function (must have the same prototype than the main function of any C program: int ..(int argc, char *argv[])) + */ +void MSG_function_register_default(xbt_main_func_t code) +{ + SIMIX_function_register_default(code); +} + /** \ingroup msg_easier_life * \brief Retrieves a registered main function *