tools/libs/store: cleanup libxenstore interface
authorJuergen Gross <jgross@suse.com>
Wed, 12 May 2021 14:48:32 +0000 (16:48 +0200)
committerIan Jackson <iwj@xenproject.org>
Fri, 11 Jun 2021 09:56:47 +0000 (10:56 +0100)
commitd2cad41defe4e0e9987549fbc8ebdf9ae138f90f
tree8f382e6547514fd68a8a8047a2044b990ab9fd7d
parent2bb17a45b1814b0b6aa4646eff58e16f876281fd
tools/libs/store: cleanup libxenstore interface

There are some internals in the libxenstore interface which should be
removed.

Move those functions into xs_lib.c and the related definitions into
xs_lib.h. Remove the functions from the mapfile. Add xs_lib.o to
xenstore_client as some of the internal functions are needed there.

Bump the libxenstore version to 4.0 as the change is incompatible.
Note that the removed functions should not result in any problem as
they ought to be used by xenstored or xenstore_client only.

Avoid an enum as part of a structure as the size of an enum is
compiler implementation dependent.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
14 files changed:
tools/include/xenstore_lib.h
tools/libs/store/Makefile
tools/libs/store/libxenstore.map
tools/libs/store/xs.c
tools/xenstore/Makefile
tools/xenstore/utils.h
tools/xenstore/xenstore_client.c
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h
tools/xenstore/xenstored_watch.c
tools/xenstore/xs_lib.c
tools/xenstore/xs_lib.h [new file with mode: 0644]
tools/xenstore/xs_tdb_dump.c