File: GTGReplay.h

package info (click to toggle)
gtg-trace 0.2-2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,216 kB
  • sloc: sh: 11,269; ansic: 4,188; fortran: 234; f90: 167; makefile: 138
file content (46 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
 *  \file GTGReplay.h
 *  \version 0.1
 *  \brief
 *
 *  This file defines functions for postponing event-processing function calls
 */

#ifndef GTG_REPLAY_H
#define GTG_REPLAY_H

/**
 * \defgroup GTGReplay Functions for postponing event-processing function calls
 */
enum event_type_t {
  event_addContainer,
  event_destroyContainer,
  event_setState,
  event_pushState,
  event_popState,
  event_addEvent,
  event_startLink,
  event_endLink,
  event_setVar,
  event_addVar,
  event_subVar
};

/**
 * \ingroup GTGReplay
 * \fn void gtg_record(enum event_type_t type, varPrec time, ...)
 * \brief postpone the recording of an event
 * \param type The type of function to postpone
 * \param time The time at which the event happens
 */
void gtg_record(enum event_type_t type, varPrec time, ...);

/**
 * \ingroup GTGReplay
 * \fn void gtg_write_events(long nb_events_to_write)
 * \brief run the first nb_events_to_write events
 * \param nb_events_to_write The number of functions to process (-1 for all functions)
 */
void gtg_write_events(long nb_events_to_write);

#endif /* GTG_REPLAY_H */