win-pvdrivers

view common/include/xenbus_public.h @ 62:edd4a2ad5b44

Removed old inf files
author James Harper <james.harper@bendigoit.com.au>
date Wed Dec 19 10:22:50 2007 +1100 (2007-12-19)
parents 94d0f2823b42
children
line source
1 /*
2 PV Drivers for Windows Xen HVM Domains
3 Copyright (C) 2007 James Harper
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
20 #if !defined(_XENBUS_PUBLIC_H_)
21 #define _XENBUS_PUBLIC_H_
23 DEFINE_GUID( GUID_XEN_IFACE_XENBUS, 0x9CA4D816, 0x0E5E, 0x4f9a, 0x8F, 0x59, 0x94, 0x4C, 0xED, 0x82, 0x78, 0x11);
24 //{9CA4D816-0E5E-4f9a-8F59-944CED827811}
26 typedef VOID
27 (*PXENBUS_WATCH_CALLBACK)(char *Path, PVOID ServiceContext);
29 typedef char *
30 (*PXEN_XENBUS_READ)(PVOID Context, xenbus_transaction_t xbt, const char *path, char **value);
31 typedef char *
32 (*PXEN_XENBUS_WRITE)(PVOID Context, xenbus_transaction_t xbt, const char *path, const char *value);
33 typedef char *
34 (*PXEN_XENBUS_PRINTF)(PVOID Context, xenbus_transaction_t xbt, const char *path, const char *fmt, ...);
35 typedef char *
36 (*PXEN_XENBUS_STARTTRANSACTION)(PVOID Context, xenbus_transaction_t *xbt);
37 typedef char *
38 (*PXEN_XENBUS_ENDTRANSACTION)(PVOID Context, xenbus_transaction_t t, int abort, int *retry);
39 typedef char *
40 (*PXEN_XENBUS_LIST)(PVOID Context, xenbus_transaction_t xbt, const char *prefix, char ***contents);
41 typedef char *
42 (*PXEN_XENBUS_ADDWATCH)(PVOID Context, xenbus_transaction_t xbt, const char *Path, PXENBUS_WATCH_CALLBACK ServiceRoutine, PVOID ServiceContext);
43 typedef char *
44 (*PXEN_XENBUS_REMWATCH)(PVOID Context, xenbus_transaction_t xbt, const char *Path, PXENBUS_WATCH_CALLBACK ServiceRoutine, PVOID ServiceContext);
46 typedef struct _XEN_IFACE_XENBUS {
47 INTERFACE InterfaceHeader;
49 PXEN_XENBUS_READ Read;
50 PXEN_XENBUS_WRITE Write;
51 PXEN_XENBUS_PRINTF Printf;
52 PXEN_XENBUS_STARTTRANSACTION StartTransaction;
53 PXEN_XENBUS_ENDTRANSACTION EndTransaction;
54 PXEN_XENBUS_LIST List;
55 PXEN_XENBUS_ADDWATCH AddWatch;
56 PXEN_XENBUS_REMWATCH RemWatch;
57 } XEN_IFACE_XENBUS, *PXEN_IFACE_XENBUS;
59 #endif