X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/03f69b9100f6c7bbadc7be1d5e5e65a5c96a6c62..054ee8581cc1b4c22fcf66c5b3f0c6e7267a3e65:/src/simix/smx_user.c diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index 2b09caa21e..6103afb927 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -44,6 +44,28 @@ const char* simcall_host_get_name(smx_host_t host) return simcall_BODY_host_get_name(host); } +/** + * \ingroup simix_host_management + * \brief Start the host if it is off + * + * \param host A SIMIX host + */ +void simcall_host_on(smx_host_t host) +{ + simcall_BODY_host_on(host); +} + +/** + * \ingroup simix_host_management + * \brief Stop the host if it is on + * + * \param host A SIMIX host + */ +void simcall_host_off(smx_host_t host) +{ + simcall_BODY_host_off(host); +} + /** * \ingroup simix_host_management * \brief Returns a dict of the properties assigned to a host.