xen-bus.h (15002921e878e6cf485f655d580733b5319ea015) xen-bus.h (523b6b3abac928ff3574d8a45df58d29bd8ae454)
1/*
2 * Copyright (c) 2018 Citrix Systems Inc.
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
7
8#ifndef HW_XEN_BUS_H

--- 19 unchanged lines hidden (view full) ---

28 struct qemu_xs_watch *backend_online_watch;
29 xengnttab_handle *xgth;
30 bool inactive;
31 QLIST_HEAD(, XenEventChannel) event_channels;
32 QLIST_ENTRY(XenDevice) list;
33};
34typedef struct XenDevice XenDevice;
35
1/*
2 * Copyright (c) 2018 Citrix Systems Inc.
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
7
8#ifndef HW_XEN_BUS_H

--- 19 unchanged lines hidden (view full) ---

28 struct qemu_xs_watch *backend_online_watch;
29 xengnttab_handle *xgth;
30 bool inactive;
31 QLIST_HEAD(, XenEventChannel) event_channels;
32 QLIST_ENTRY(XenDevice) list;
33};
34typedef struct XenDevice XenDevice;
35
36typedef char *(*XenDeviceGetFrontendPath)(XenDevice *xendev, Error **errp);
36typedef char *(*XenDeviceGetName)(XenDevice *xendev, Error **errp);
37typedef void (*XenDeviceRealize)(XenDevice *xendev, Error **errp);
38typedef void (*XenDeviceFrontendChanged)(XenDevice *xendev,
39 enum xenbus_state frontend_state,
40 Error **errp);
41typedef void (*XenDeviceUnrealize)(XenDevice *xendev);
42
43struct XenDeviceClass {
44 /*< private >*/
45 DeviceClass parent_class;
46 /*< public >*/
47 const char *backend;
48 const char *device;
37typedef char *(*XenDeviceGetName)(XenDevice *xendev, Error **errp);
38typedef void (*XenDeviceRealize)(XenDevice *xendev, Error **errp);
39typedef void (*XenDeviceFrontendChanged)(XenDevice *xendev,
40 enum xenbus_state frontend_state,
41 Error **errp);
42typedef void (*XenDeviceUnrealize)(XenDevice *xendev);
43
44struct XenDeviceClass {
45 /*< private >*/
46 DeviceClass parent_class;
47 /*< public >*/
48 const char *backend;
49 const char *device;
50 XenDeviceGetFrontendPath get_frontend_path;
49 XenDeviceGetName get_name;
50 XenDeviceRealize realize;
51 XenDeviceFrontendChanged frontend_changed;
52 XenDeviceUnrealize unrealize;
53};
54
55#define TYPE_XEN_DEVICE "xen-device"
56OBJECT_DECLARE_TYPE(XenDevice, XenDeviceClass, XEN_DEVICE)

--- 77 unchanged lines hidden ---
51 XenDeviceGetName get_name;
52 XenDeviceRealize realize;
53 XenDeviceFrontendChanged frontend_changed;
54 XenDeviceUnrealize unrealize;
55};
56
57#define TYPE_XEN_DEVICE "xen-device"
58OBJECT_DECLARE_TYPE(XenDevice, XenDeviceClass, XEN_DEVICE)

--- 77 unchanged lines hidden ---