|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/3] include: sync store_interface.h with xenbus
Signed-off-by: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
---
include/store_interface.h | 80 +++++++++++++++++++--------------------
1 file changed, 40 insertions(+), 40 deletions(-)
diff --git a/include/store_interface.h b/include/store_interface.h
index 83a76a1..208be0e 100644
--- a/include/store_interface.h
+++ b/include/store_interface.h
@@ -1,32 +1,32 @@
/* Copyright (c) Xen Project.
* Copyright (c) Cloud Software Group, Inc.
* All rights reserved.
- *
- * Redistribution and use in source and binary forms,
- * with or without modification, are permitted provided
+ *
+ * Redistribution and use in source and binary forms,
+ * with or without modification, are permitted provided
* that the following conditions are met:
- *
- * * Redistributions of source code must retain the above
- * copyright notice, this list of conditions and the
+ *
+ * * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
* following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the
- * following disclaimer in the documentation and/or other
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer in the documentation and/or other
* materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
@@ -72,7 +72,7 @@ typedef struct _XENBUS_STORE_PERMISSION {
\brief Acquire a reference to the STORE interface
\param Interface The interface header
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_ACQUIRE)(
_In_ PINTERFACE Interface
@@ -82,7 +82,7 @@ typedef NTSTATUS
\brief Release a reference to the STORE interface
\param Interface The interface header
-*/
+*/
typedef VOID
(*XENBUS_STORE_RELEASE)(
_In_ PINTERFACE Interface
@@ -93,7 +93,7 @@ typedef VOID
\param Interface The interface header
\param Buffer Pointer to the memory buffer
-*/
+*/
typedef VOID
(*XENBUS_STORE_FREE)(
_In_ PINTERFACE Interface,
@@ -113,14 +113,14 @@ typedef VOID
buffer containing the value read
The \a Buffer should be freed using \a XENBUS_STORE_FREE
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_READ)(
_In_ PINTERFACE Interface,
_In_opt_ PXENBUS_STORE_TRANSACTION Transaction,
_In_opt_ PSTR Prefix,
_In_ PSTR Node,
- _Outptr_ PCHAR *Buffer
+ _Outptr_result_z_ PSTR *Buffer
);
/*! \typedef XENBUS_STORE_PRINTF
@@ -136,7 +136,7 @@ typedef NTSTATUS
\param ... Additional parameters required by \a Format
If the \a Node does not exist then it is created
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_PRINTF)(
_In_ PINTERFACE Interface,
@@ -156,7 +156,7 @@ typedef NTSTATUS
\param Prefix An optional prefix for the \a Node
\param Node The concatenation of the \a Prefix and this value specifies
the XenStore key to remove
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_REMOVE)(
_In_ PINTERFACE Interface,
@@ -178,14 +178,14 @@ typedef NTSTATUS
buffer containing a NUL separated list of key names
The \a Buffer should be freed using \a XENBUS_STORE_FREE
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_DIRECTORY)(
_In_ PINTERFACE Interface,
_In_opt_ PXENBUS_STORE_TRANSACTION Transaction,
_In_opt_ PSTR Prefix,
_In_ PSTR Node,
- _Outptr_ PCHAR *Buffer
+ _Outptr_result_z_ PSTR *Buffer
);
/*! \typedef XENBUS_STORE_TRANSACTION_START
@@ -193,7 +193,7 @@ typedef NTSTATUS
\param Interface The interface header
\param Transaction Pointer to a transaction handle to be initialized
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_TRANSACTION_START)(
_In_ PINTERFACE Interface,
@@ -210,7 +210,7 @@ typedef NTSTATUS
If \a Commit is TRUE and the transaction to found to clash then
STATUS_RETRY will be returned
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_TRANSACTION_END)(
_In_ PINTERFACE Interface,
@@ -228,7 +228,7 @@ typedef NTSTATUS
\param Event A pointer to an event object to be signalled when the
watch fires
\param Watch A pointer to a watch handle to be initialized
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_WATCH_ADD)(
_In_ PINTERFACE Interface,
@@ -243,11 +243,11 @@ typedef NTSTATUS
\param Interface The interface header
\param Watch The watch handle
-*/
+*/
typedef NTSTATUS
(*XENBUS_STORE_WATCH_REMOVE)(
- _In_ PINTERFACE Interface,
- _In_opt_ PXENBUS_STORE_WATCH Watch
+ _In_ PINTERFACE Interface,
+ _In_ PXENBUS_STORE_WATCH Watch
);
/*! \typedef XENBUS_STORE_POLL
@@ -259,7 +259,7 @@ typedef NTSTATUS
activity then this will block the normal STORE interface DPC so this
method must be regularly invoked during the spin loop to check for
XenStore activity
-*/
+*/
typedef VOID
(*XENBUS_STORE_POLL)(
_In_ PINTERFACE Interface
@@ -288,7 +288,7 @@ typedef NTSTATUS
);
// {86824C3B-D34E-4753-B281-2F1E3AD214D7}
-DEFINE_GUID(GUID_XENBUS_STORE_INTERFACE,
+DEFINE_GUID(GUID_XENBUS_STORE_INTERFACE,
0x86824c3b, 0xd34e, 0x4753, 0xb2, 0x81, 0x2f, 0x1e, 0x3a, 0xd2, 0x14, 0xd7);
/*! \struct _XENBUS_STORE_INTERFACE_V2
--
2.55.0.windows.5
--
Césaire Mounah | Vates Windows Guest Tools Engineer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |