]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Export qemuProcessHandleDeviceDeleted for tests
authorJiri Denemark <jdenemar@redhat.com>
Fri, 26 Jul 2013 12:24:55 +0000 (14:24 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 26 Aug 2013 14:09:55 +0000 (16:09 +0200)
src/Makefile.am
src/qemu/qemu_process.c
src/qemu/qemu_process.h
src/qemu/qemu_processpriv.h [new file with mode: 0644]

index faa2cd6e81e0e082327ab1fc07d5f34b9721c8ff..8ced2ecb0adda16d3678dae9df4dc5ccbfeb54c6 100644 (file)
@@ -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                                \
index 743f839abe7612dfa83d1025bbc3012778bc8087..128618bf53bf8871dd637abeab10360c93ada5e1 100644 (file)
@@ -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,
index 8c81e40e3e9075b1ae6b29f8132a921d779ad8b0..405c73d18b7adea51efc293260a9b0d0d1960078 100644 (file)
@@ -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 (file)
index 0000000..782fcd5
--- /dev/null
@@ -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__ */