scriptreplay: (utils) detect empty steps
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
b639c2a39b
commit
a46e54583d
|
@ -277,6 +277,13 @@ const char *replay_step_get_filename(struct replay_step *step)
|
|||
return step->data->filename;
|
||||
}
|
||||
|
||||
int replay_step_is_empty(struct replay_step *step)
|
||||
{
|
||||
assert(step);
|
||||
return step->size == 0 && step->type == 0;
|
||||
}
|
||||
|
||||
|
||||
static int read_multistream_step(struct replay_step *step, FILE *f, char type)
|
||||
{
|
||||
int rc = 0;
|
||||
|
|
|
@ -42,6 +42,7 @@ int replay_set_delay_div(struct replay_setup *stp, const double divi);
|
|||
|
||||
struct timeval *replay_step_get_delay(struct replay_step *step);
|
||||
const char *replay_step_get_filename(struct replay_step *step);
|
||||
int replay_step_is_empty(struct replay_step *step);
|
||||
int replay_get_next_step(struct replay_setup *stp, char *streams, struct replay_step **xstep);
|
||||
|
||||
int replay_emit_step_data(struct replay_setup *stp, struct replay_step *step, int fd);
|
||||
|
|
Loading…
Reference in New Issue