X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e9a351f4dbb9fdf5c9eb9eaaddb47dd357b9ea0d..fca6c6f4d442bde9453073545e8d2c640a50aea9:/src/xbt/xbt_replay.cpp diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index 4e9f9fca24..408c7f4a13 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -180,3 +180,14 @@ void xbt_replay_action_register(const char* action_name, action_fun function) { simgrid::xbt::action_funs.insert({std::string(action_name), function}); } + +/** + * \ingroup XBT_replay + * \brief Get the function that was previously registered to handle a kind of action + * + * This can be useful if you want to override and extend an existing action. + */ +action_fun xbt_replay_action_get(const char* action_name) +{ + return simgrid::xbt::action_funs.at(std::string(action_name)); +}