]> xenbits.xensource.com Git - xen.git/commit
xenstore: Split out XS_CONTROL action to dedicated source file
authorJuergen Gross <jgross@suse.com>
Fri, 24 Feb 2017 06:21:41 +0000 (07:21 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Feb 2017 10:45:05 +0000 (10:45 +0000)
commitf952b0f11c7f78bd362ad1d991e5adfa6f0f458b
treec31708de8a01e41e2f9bf2a456ebdf47778fda1f
parentf88d7aded87307e41700c7f21ae17375b846c265
xenstore: Split out XS_CONTROL action to dedicated source file

Move the XS_CONTROL handling of xenstored to a new source file
xenstored_control.c.

In order to avoid making get_string() in xenstored_core.c globally
visible use strlen() instead, which is save in this context due to
xs_count_strings() before returned a value > 1.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/Makefile
tools/xenstore/xenstored_control.c [new file with mode: 0644]
tools/xenstore/xenstored_control.h [new file with mode: 0644]
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h