* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid_config.h" //For getline, keep that include first
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid_config.h" //For getline, keep that include first
* \brief Registers a function to handle a kind of action
*
* Registers a function to handle a kind of action
* \brief Registers a function to handle a kind of action
*
* Registers a function to handle a kind of action
xbt_dict_set(action_funs, action_name, function, NULL);
}
xbt_dict_set(action_funs, action_name, function, NULL);
}
* \brief Unregisters a function, which handled a kind of action
*
* \param action_name the reference name of the action.
* \brief Unregisters a function, which handled a kind of action
*
* \param action_name the reference name of the action.
if (action_fp) { // A unique trace file
while ((evt = action_get_action(argv[0]))) {
action_fun function =
(action_fun)xbt_dict_get(action_funs, evt[1]);
function(evt);
if (action_fp) { // A unique trace file
while ((evt = action_get_action(argv[0]))) {
action_fun function =
(action_fun)xbt_dict_get(action_funs, evt[1]);
function(evt);