]> xenbits.xensource.com Git - people/dwmw2/xen.git/commit
python: Extract registered watch search logic from xspy_read_watch()
authorEuan Harris <euan.harris@citrix.com>
Fri, 22 Sep 2017 16:21:13 +0000 (17:21 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 25 Sep 2017 13:35:56 +0000 (14:35 +0100)
commitf6e10234120ab918b4088ec9ba17c1101d3f5f47
tree2e38382a279157a680b915684097ce048f6bfdff
parent43fd62ce1615ffe78a93eb0fe41653daf356847c
python: Extract registered watch search logic from xspy_read_watch()

When a watch fires, xspy_read_watch() checks whether the client has
registered interest in the path which changed and, if so, returns the
path and a client-supplied token.   The binding for xs_check_watch()
needs to do the same, so this patch extracts the search code into a
separate function.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
tools/python/xen/lowlevel/xs/xs.c