]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - term-utils/script-playutils.h
1 #ifndef UTIL_LINUX_SCRIPT_PLAYUTILS_H
2 #define UTIL_LINUX_SCRIPT_PLAYUTILS_H
7 #define SCRIPTREPLAY_DEBUG_INIT (1 << 1)
8 #define SCRIPTREPLAY_DEBUG_TIMING (1 << 2)
9 #define SCRIPTREPLAY_DEBUG_LOG (1 << 3)
10 #define SCRIPTREPLAY_DEBUG_MISC (1 << 4)
11 #define SCRIPTREPLAY_DEBUG_ALL 0xFFFF
13 UL_DEBUG_DECLARE_MASK(scriptreplay
);
15 #define DBG(m, x) __UL_DBG(scriptreplay, SCRIPTREPLAY_DEBUG_, m, x)
16 #define ON_DBG(m, x) __UL_DBG_CALL(scriptreplay, SCRIPTREPLAY_DEBUG_, m, x)
20 REPLAY_CRMODE_AUTO
= 0,
28 void replay_init_debug(void);
29 struct replay_setup
*replay_new_setup(void);
30 void replay_free_setup(struct replay_setup
*stp
);
32 int replay_set_default_type(struct replay_setup
*stp
, char type
);
33 int replay_set_crmode(struct replay_setup
*stp
, int mode
);
34 int replay_set_timing_file(struct replay_setup
*stp
, const char *filename
);
35 const char *replay_get_timing_file(struct replay_setup
*setup
);
36 int replay_get_timing_line(struct replay_setup
*setup
);
37 int replay_associate_log(struct replay_setup
*stp
, const char *streams
, const char *filename
);
39 int replay_set_delay_min(struct replay_setup
*stp
, const struct timeval
*tv
);
40 int replay_set_delay_max(struct replay_setup
*stp
, const struct timeval
*tv
);
41 int replay_set_delay_div(struct replay_setup
*stp
, const double divi
);
43 struct timeval
*replay_step_get_delay(struct replay_step
*step
);
44 const char *replay_step_get_filename(struct replay_step
*step
);
45 int replay_step_is_empty(struct replay_step
*step
);
46 int replay_get_next_step(struct replay_setup
*stp
, char *streams
, struct replay_step
**xstep
);
48 int replay_emit_step_data(struct replay_setup
*stp
, struct replay_step
*step
, int fd
);
50 #endif /* UTIL_LINUX_SCRIPT_PLAYUTILS_H */