summary refs log tree commit diff stats
path: root/hw/xen_backend.h
diff options
context:
space:
mode:
authorJohn Haxby <john.haxby@oracle.com>2011-06-17 12:15:35 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-09-09 13:13:16 +0000
commit384087b2fec0da72238e92a0c6124579117e0c4b (patch)
tree8fa78910a65fd5b553bc41c4d65310c536edf494 /hw/xen_backend.h
parent07ff2c4475df77e38a31d50ee7f3932631806c15 (diff)
downloadfocaccia-qemu-384087b2fec0da72238e92a0c6124579117e0c4b.tar.gz
focaccia-qemu-384087b2fec0da72238e92a0c6124579117e0c4b.zip
Introduce a new 'connected' xendev op called when Connected.
Rename the existing xendev 'connect' op to 'initialised' and introduce
a new 'connected' op.  This new op, if defined, is called when the
backend is connected.  Note that since there is no state transition this
may be called more than once.

Signed-off-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'hw/xen_backend.h')
-rw-r--r--hw/xen_backend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xen_backend.h b/hw/xen_backend.h
index 6401c85a7e..3305630903 100644
--- a/hw/xen_backend.h
+++ b/hw/xen_backend.h
@@ -21,7 +21,8 @@ struct XenDevOps {
     uint32_t  flags;
     void      (*alloc)(struct XenDevice *xendev);
     int       (*init)(struct XenDevice *xendev);
-    int       (*connect)(struct XenDevice *xendev);
+    int       (*initialise)(struct XenDevice *xendev);
+    void      (*connected)(struct XenDevice *xendev);
     void      (*event)(struct XenDevice *xendev);
     void      (*disconnect)(struct XenDevice *xendev);
     int       (*free)(struct XenDevice *xendev);