Add offset setter in streams
This commit is contained in:
parent
d6f9ed7125
commit
9a4af7e0ec
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user