X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ba9a4cfeba4eb00e84cd17603fc9654e81445655..4bd1f48f0bf1ad1703be680ec2a38d626c6a2668:/src/msg/msg_deployment.cpp diff --git a/src/msg/msg_deployment.cpp b/src/msg/msg_deployment.cpp index af82087e81..a5089f6258 100644 --- a/src/msg/msg_deployment.cpp +++ b/src/msg/msg_deployment.cpp @@ -1,12 +1,11 @@ -/* Copyright (c) 2004-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2004-2014. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "msg_private.h" -#include "xbt/sysdep.h" -#include "xbt/log.h" +#include "src/msg/msg_private.h" + +SG_BEGIN_DECL() /** \ingroup msg_simulation * \brief An application deployer. @@ -16,7 +15,7 @@ * * \include simgrid.dtd * - * Here is a small example of such a platform + * Here is a small example of such a platform * * \include msg/masterslave/deployment_masterslave.xml * @@ -31,8 +30,8 @@ void MSG_launch_application(const char *file) /** \ingroup msg_simulation * \brief Registers the main function of a process in a global table. * - * Registers a code function in a global table. - * This table is then used by #MSG_launch_application. + * Registers a code function in a global table. + * This table is then used by #MSG_launch_application. * \param name the reference name of the function. * \param code the function (must have the same prototype than the main function of any C program: int ..(int argc, char *argv[])) */ @@ -52,18 +51,6 @@ void MSG_function_register_default(xbt_main_func_t code) SIMIX_function_register_default(code); } -/** \ingroup msg_simulation - * \brief Retrieves a registered main function - * - * Registers a code function in a global table. - * This table is then used by #MSG_launch_application. - * \param name the reference name of the function. - */ -xbt_main_func_t MSG_get_registered_function(const char *name) -{ - return SIMIX_get_registered_function(name); -} - /** * \brief register functions bypassing the parser */ @@ -72,3 +59,5 @@ void MSG_set_function(const char *host_id, const char *function_name, xbt_dynar_ { SIMIX_process_set_function(host_id, function_name, arguments, -1, -1); } + +SG_END_DECL()