mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Export qemuProcessHandleDeviceDeleted for tests
This commit is contained in:
parent
201f01ab97
commit
b2f76cd20e
@ -638,6 +638,7 @@ QEMU_DRIVER_SOURCES = \
|
||||
qemu/qemu_hotplug.c qemu/qemu_hotplug.h \
|
||||
qemu/qemu_conf.c qemu/qemu_conf.h \
|
||||
qemu/qemu_process.c qemu/qemu_process.h \
|
||||
qemu/qemu_processpriv.h \
|
||||
qemu/qemu_migration.c qemu/qemu_migration.h \
|
||||
qemu/qemu_monitor.c qemu/qemu_monitor.h \
|
||||
qemu/qemu_monitor_text.c \
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* qemu_process.h: QEMU process management
|
||||
* qemu_process.c: QEMU process management
|
||||
*
|
||||
* Copyright (C) 2006-2013 Red Hat, Inc.
|
||||
*
|
||||
@ -33,6 +33,7 @@
|
||||
#endif
|
||||
|
||||
#include "qemu_process.h"
|
||||
#include "qemu_processpriv.h"
|
||||
#include "qemu_domain.h"
|
||||
#include "qemu_cgroup.h"
|
||||
#include "qemu_capabilities.h"
|
||||
@ -1332,7 +1333,7 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
int
|
||||
qemuProcessHandleDeviceDeleted(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
||||
virDomainObjPtr vm,
|
||||
const char *devAlias,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* qemu_process.c: QEMU process management
|
||||
* qemu_process.h: QEMU process management
|
||||
*
|
||||
* Copyright (C) 2006-2012 Red Hat, Inc.
|
||||
*
|
||||
|
37
src/qemu/qemu_processpriv.h
Normal file
37
src/qemu/qemu_processpriv.h
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* qemu_processpriv.h: private declarations for QEMU process management
|
||||
*
|
||||
* Copyright (C) 2013 Red Hat, Inc.
|
||||
*
|
||||
* 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_PROCESSPRIV_H__
|
||||
# define __QEMU_PROCESSPRIV_H__
|
||||
|
||||
# include "domain_conf.h"
|
||||
# include "qemu_monitor.h"
|
||||
|
||||
/*
|
||||
* This header file should never be used outside unit tests.
|
||||
*/
|
||||
|
||||
int qemuProcessHandleDeviceDeleted(qemuMonitorPtr mon,
|
||||
virDomainObjPtr vm,
|
||||
const char *devAlias,
|
||||
void *opaque);
|
||||
|
||||
#endif /* __QEMU_PROCESSPRIV_H__ */
|
Loading…
x
Reference in New Issue
Block a user