From: Jiri Denemark Date: Fri, 26 Jul 2013 12:24:55 +0000 (+0200) Subject: qemu: Export qemuProcessHandleDeviceDeleted for tests X-Git-Tag: v1.1.2-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2f76cd20e3f78d11a8c03f481f18da3d0af46c9;p=thirdparty%2Flibvirt.git qemu: Export qemuProcessHandleDeviceDeleted for tests --- diff --git a/src/Makefile.am b/src/Makefile.am index faa2cd6e81..8ced2ecb0a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 \ diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 743f839abe..128618bf53 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.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, diff --git a/src/qemu/qemu_process.h b/src/qemu/qemu_process.h index 8c81e40e3e..405c73d18b 100644 --- a/src/qemu/qemu_process.h +++ b/src/qemu/qemu_process.h @@ -1,5 +1,5 @@ /* - * qemu_process.c: QEMU process management + * qemu_process.h: QEMU process management * * Copyright (C) 2006-2012 Red Hat, Inc. * diff --git a/src/qemu/qemu_processpriv.h b/src/qemu/qemu_processpriv.h new file mode 100644 index 0000000000..782fcd5261 --- /dev/null +++ b/src/qemu/qemu_processpriv.h @@ -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 + * . + * + */ + +#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__ */