mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
replay: provide an accessor for rr filename
This patch adds an accessor function for the name of the record/replay log file. Adding an accessor instead of making variable global, prevents accidental modification of this variable by other modules. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <160174517710.12451.17645787545733927488.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4084893ddc
commit
56db1198a4
2 changed files with 7 additions and 0 deletions
|
@ -399,3 +399,8 @@ void replay_add_blocker(Error *reason)
|
|||
{
|
||||
replay_blockers = g_slist_prepend(replay_blockers, reason);
|
||||
}
|
||||
|
||||
const char *replay_get_filename(void)
|
||||
{
|
||||
return replay_filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue