X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eb9610fbdbfac640b40d9860ef98dfaa7aab6f55..54e35ebda7e4ffacd769653b8ebb8ba93c7298bf:/src/surf/vm_interface.hpp diff --git a/src/surf/vm_interface.hpp b/src/surf/vm_interface.hpp index a8ddce849d..0dede2e71f 100644 --- a/src/surf/vm_interface.hpp +++ b/src/surf/vm_interface.hpp @@ -17,13 +17,7 @@ ***********/ class VMModel; -typedef VMModel *VMModelPtr; - class VM; -typedef VM *VMPtr; - -class VMLmm; -typedef VMLmm *VMLmmPtr; /************* * Callbacks * @@ -33,19 +27,19 @@ typedef VMLmm *VMLmmPtr; * @brief Callbacks handler which emit the callbacks after VM creation * * @details Callback functions have the following signature: `void(VMPtr)` */ -extern surf_callback(void, VMPtr) VMCreatedCallbacks; +extern surf_callback(void, VM*) VMCreatedCallbacks; /** @ingroup SURF_callbacks * @brief Callbacks handler which emit the callbacks after VM destruction * * @details Callback functions have the following signature: `void(VMPtr)` */ -extern surf_callback(void, VMPtr) VMDestructedCallbacks; +extern surf_callback(void, VM*) VMDestructedCallbacks; /** @ingroup SURF_callbacks * @brief Callbacks handler which emit the callbacks after VM State changed * * @details Callback functions have the following signature: `void(VMActionPtr)` */ -extern surf_callback(void, VMPtr) VMStateChangedCallbacks; +extern surf_callback(void, VM*) VMStateChangedCallbacks; /********* * Model * @@ -59,7 +53,7 @@ public: VMModel(); ~VMModel(){}; - HostPtr createHost(const char *name){DIE_IMPOSSIBLE;} + Host *createHost(const char *name){DIE_IMPOSSIBLE;} /** * @brief Create a new VM @@ -68,7 +62,7 @@ public: * @param host_PM The real machine hosting the VM * */ - virtual VMPtr createVM(const char *name, surf_resource_t host_PM)=0; + virtual VM *createVM(const char *name, surf_resource_t host_PM)=0; void adjustWeightOfDummyCpuActions() {}; typedef boost::intrusive::list