Add offset setter in streams

This commit is contained in:
Rodrigo Arias 2023-01-20 15:39:06 +01:00 committed by Rodrigo Arias Mallo
parent d6f9ed7125
commit 9a4af7e0ec
2 changed files with 8 additions and 0 deletions

View File

@ -130,3 +130,9 @@ emu_stream_data_get(struct emu_stream *stream)
{
return stream->data;
}
void
emu_stream_clkoff(struct emu_stream *stream, int64_t clkoff)
{
stream->clock_offset = clkoff;
}

View File

@ -35,6 +35,8 @@ struct emu_stream {
int emu_stream_load(struct emu_stream *stream,
const char *tracedir, const char *relpath);
void emu_stream_clkoff(struct emu_stream *stream, int64_t clock_offset);
void emu_stream_data_set(struct emu_stream *stream, void *data);
void *emu_stream_data_get(struct emu_stream *stream);