mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 13:20:20 +00:00
07613d2020
by running this command: git ls-files -z | xargs -0 perl -pi -0777 -e 's/\n\n+$/\n/' This is in preparation for a more strict make syntax-check rule that will detect trailing blank lines.
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From b26d7fc2d64e7e6e4d3ea2b43361015d3620d7a6 Mon Sep 17 00:00:00 2001
|
|
From: David Allan <dallan@redhat.com>
|
|
Date: Tue, 19 May 2009 16:19:14 -0400
|
|
Subject: [PATCH] Step 2 of 8 Define the internal driver API
|
|
|
|
---
|
|
src/driver.h | 7 +++++++
|
|
1 files changed, 7 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/src/driver.h b/src/driver.h
|
|
index 39dc413..c357b76 100644
|
|
--- a/src/driver.h
|
|
+++ b/src/driver.h
|
|
@@ -684,6 +684,11 @@ typedef int (*virDevMonDeviceListCaps)(virNodeDevicePtr dev,
|
|
char **const names,
|
|
int maxnames);
|
|
|
|
+typedef virNodeDevicePtr (*virDrvNodeDeviceCreateXML)(virConnectPtr conn,
|
|
+ const char *xmlDesc,
|
|
+ unsigned int flags);
|
|
+typedef int (*virDrvNodeDeviceDestroy)(virNodeDevicePtr dev);
|
|
+
|
|
/**
|
|
* _virDeviceMonitor:
|
|
*
|
|
@@ -702,6 +707,8 @@ struct _virDeviceMonitor {
|
|
virDevMonDeviceGetParent deviceGetParent;
|
|
virDevMonDeviceNumOfCaps deviceNumOfCaps;
|
|
virDevMonDeviceListCaps deviceListCaps;
|
|
+ virDrvNodeDeviceCreateXML deviceCreateXML;
|
|
+ virDrvNodeDeviceDestroy deviceDestroy;
|
|
};
|
|
|
|
/*
|
|
--
|
|
1.6.0.6
|