---
src/Makefile.am | 1 +
src/qemu/qemu_process.c | 5 +++--
src/qemu/qemu_process.h | 2 +-
src/qemu/qemu_processpriv.h | 37 +++++++++++++++++++++++++++++++++++++
4 files changed, 42 insertions(+), 3 deletions(-)
create mode 100644 src/qemu/qemu_processpriv.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 62e427e..88dc5fe 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -635,6 +635,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 0d48f4f..4647d99 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 8c81e40..405c73d 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 0000000..782fcd5
--- /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
+ * <
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__ */
--
1.8.3.2