A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add getter/setter functions in simix to access more cleanly the process associated...
[simgrid.git]
/
src
/
xbt
/
xbt_replay.c
diff --git
a/src/xbt/xbt_replay.c
b/src/xbt/xbt_replay.c
index
ded2f58
..
7cf78b0
100644
(file)
--- a/
src/xbt/xbt_replay.c
+++ b/
src/xbt/xbt_replay.c
@@
-22,10
+22,14
@@
typedef struct s_replay_reader {
char *filename; int linenum;
} s_xbt_replay_reader_t;
char *filename; int linenum;
} s_xbt_replay_reader_t;
+FILE *action_fp;
+
+xbt_dict_t action_funs;
+xbt_dict_t action_queues;
+
static char *action_line = NULL;
static size_t action_len = 0;
static char *action_line = NULL;
static size_t action_len = 0;
-
static const char **action_get_action(char *name);
xbt_replay_reader_t xbt_replay_reader_new(const char *filename)
static const char **action_get_action(char *name);
xbt_replay_reader_t xbt_replay_reader_new(const char *filename)
@@
-79,11
+83,12
@@
void xbt_replay_reader_free(xbt_replay_reader_t *reader)
*reader=NULL;
}
*reader=NULL;
}
-/** \ingroup xbt_replay
+/**
+ * \ingroup XBT_replay
* \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
- * This table is then used by #xbt_replay_action_run
+ * This table is then used by #xbt_replay_action_run
ner
*
* The argument of the function is the line describing the action, splitted on spaces with xbt_str_split_quoted()
*
*
* The argument of the function is the line describing the action, splitted on spaces with xbt_str_split_quoted()
*
@@
-95,7
+100,7
@@
void xbt_replay_action_register(const char *action_name, action_fun function)
xbt_dict_set(action_funs, action_name, function, NULL);
}
xbt_dict_set(action_funs, action_name, function, NULL);
}
-/** \ingroup
xbt
_replay
+/** \ingroup
XBT
_replay
* \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.