]> git.proxmox.com Git - mirror_qemu.git/blame - replay/replay-internal.h
replay: internal functions for replay log
[mirror_qemu.git] / replay / replay-internal.h
CommitLineData
c92079f4
PD
1#ifndef REPLAY_INTERNAL_H
2#define REPLAY_INTERNAL_H
3
4/*
5 * replay-internal.h
6 *
7 * Copyright (c) 2010-2015 Institute for System Programming
8 * of the Russian Academy of Sciences.
9 *
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
12 *
13 */
14
15#include <stdio.h>
16
17extern unsigned int replay_data_kind;
18
19/* File for replay writing */
20extern FILE *replay_file;
21
22void replay_put_byte(uint8_t byte);
23void replay_put_event(uint8_t event);
24void replay_put_word(uint16_t word);
25void replay_put_dword(uint32_t dword);
26void replay_put_qword(int64_t qword);
27void replay_put_array(const uint8_t *buf, size_t size);
28
29uint8_t replay_get_byte(void);
30uint16_t replay_get_word(void);
31uint32_t replay_get_dword(void);
32int64_t replay_get_qword(void);
33void replay_get_array(uint8_t *buf, size_t *size);
34void replay_get_array_alloc(uint8_t **buf, size_t *size);
35
36/*! Checks error status of the file. */
37void replay_check_error(void);
38
39/*! Finishes processing of the replayed event and fetches
40 the next event from the log. */
41void replay_finish_event(void);
42/*! Reads data type from the file and stores it in the
43 replay_data_kind variable. */
44void replay_fetch_data_kind(void);
45
46#endif