X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c31bbbb83963c7db2b5970f5c81cbcdd7bc1c5d5..e709643ef0c5b61c6c878016c418bffa2b1b20cd:/include/simgrid/vm.h diff --git a/include/simgrid/vm.h b/include/simgrid/vm.h index e7e29bb81d..a89e274e15 100644 --- a/include/simgrid/vm.h +++ b/include/simgrid/vm.h @@ -1,6 +1,6 @@ -/* Public interface to the Link datatype */ +/* Public interface to the Virtual Machine datatype */ -/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2020. 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. */ @@ -14,16 +14,8 @@ /* C interface */ SG_BEGIN_DECL -/** @brief Opaque type describing a Virtual Machine. - * @ingroup msg_VMs - * - * All this is highly experimental and the interface will probably change in the future. - * Please don't depend on this yet (although testing is welcomed if you feel so). - * Usual lack of guaranty of any kind applies here, and is even increased. - * - */ XBT_PUBLIC sg_vm_t sg_vm_create_core(sg_host_t pm, const char* name); -XBT_PUBLIC sg_vm_t sg_vm_create_multicore(sg_host_t pm, const char* name, int coreAmount); +XBT_PUBLIC sg_vm_t sg_vm_create_multicore(sg_host_t pm, const char* name, int core_amount); XBT_PUBLIC int sg_vm_is_created(sg_vm_t vm); XBT_PUBLIC int sg_vm_is_running(sg_vm_t vm); @@ -31,9 +23,9 @@ XBT_PUBLIC int sg_vm_is_suspended(sg_vm_t vm); XBT_PUBLIC const char* sg_vm_get_name(const_sg_vm_t vm); XBT_PUBLIC void sg_vm_set_ramsize(sg_vm_t vm, size_t size); -XBT_PUBLIC size_t sg_vm_get_ramsize(sg_vm_t vm); +XBT_PUBLIC size_t sg_vm_get_ramsize(const_sg_vm_t vm); XBT_PUBLIC void sg_vm_set_bound(sg_vm_t vm, double bound); -XBT_PUBLIC sg_host_t sg_vm_get_pm(sg_vm_t vm); +XBT_PUBLIC sg_host_t sg_vm_get_pm(const_sg_vm_t vm); XBT_PUBLIC void sg_vm_start(sg_vm_t vm); XBT_PUBLIC void sg_vm_suspend(sg_vm_t vm);