mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-06 21:15:22 +00:00
cc8f8bfdee
qemucapabilitiestest for simplicity uses one test monitor object for simulating work of two separate inquiries of the qemu process. To allow better testing in the future it will be required to reset the counter so that it accurately simulates how qemu would behave. This patch adds a private monitor API which allows to reset the counter which will be usable only in tests. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
/*
|
|
* qemu_monitor_priv.h: interaction with QEMU monitor console (private)
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __QEMU_MONITOR_PRIV_H_ALLOW__
|
|
# error "qemu_monitor_priv.h may only be included by qemu_monitor.c or test suites"
|
|
#endif
|
|
|
|
#ifndef __QEMU_MONITOR_PRIV_H__
|
|
# define __QEMU_MONITOR_PRIV_H__
|
|
|
|
# include "qemu_monitor.h"
|
|
|
|
void
|
|
qemuMonitorResetCommandID(qemuMonitorPtr mon);
|
|
|
|
#endif
|