xen: modify xenstore watch event interface
authorJuergen Gross <jgross@suse.com>
Thu, 9 Feb 2017 13:39:57 +0000 (14:39 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 9 Feb 2017 16:26:49 +0000 (11:26 -0500)
commit5584ea250ae44f929feb4c7bd3877d1c5edbf813
treed84dca574c46ec785098d13211d92ef74e3a74f2
parent332f791dc98d98116f4473b726f67c9321b0f31e
xen: modify xenstore watch event interface

Today a Xenstore watch event is delivered via a callback function
declared as:

void (*callback)(struct xenbus_watch *,
                 const char **vec, unsigned int len);

As all watch events only ever come with two parameters (path and token)
changing the prototype to:

void (*callback)(struct xenbus_watch *,
                 const char *path, const char *token);

is the natural thing to do.

Apply this change and adapt all users.

Cc: konrad.wilk@oracle.com
Cc: roger.pau@citrix.com
Cc: wei.liu2@citrix.com
Cc: paul.durrant@citrix.com
Cc: netdev@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
14 files changed:
drivers/block/xen-blkback/xenbus.c
drivers/net/xen-netback/xenbus.c
drivers/xen/cpu_hotplug.c
drivers/xen/manage.c
drivers/xen/xen-balloon.c
drivers/xen/xen-pciback/xenbus.c
drivers/xen/xenbus/xenbus.h
drivers/xen/xenbus/xenbus_client.c
drivers/xen/xenbus/xenbus_dev_frontend.c
drivers/xen/xenbus/xenbus_probe.c
drivers/xen/xenbus/xenbus_probe_backend.c
drivers/xen/xenbus/xenbus_probe_frontend.c
drivers/xen/xenbus/xenbus_xs.c
include/xen/xenbus.h