sd-bus: split introspection into the content creation and reply creation parts
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Apr 2019 10:14:35 +0000 (12:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Apr 2019 10:23:15 +0000 (12:23 +0200)
commitdff9e25a76debcc63a70c9d02bcf77485da6b305
tree0e5ba2848240767bd208a1521dbda3e6bdee60ee
parent2abda6d1e4a4f18a6033f865cf83d914a3f27e9e
sd-bus: split introspection into the content creation and reply creation parts

Just moving code around, in preparation to allow the content creation
part to be used in other places.

On the surface of things, introspect_path() should be in bus-introspect.c, but
introspect_path() uses many static helper functions in bus-objects.c, so moving
it would require all of them to be exposed, which is too much trouble.

test-bus-introspect is updated to actually write the closing bracket.
src/libsystemd/sd-bus/bus-introspect.c
src/libsystemd/sd-bus/bus-introspect.h
src/libsystemd/sd-bus/bus-objects.c
src/libsystemd/sd-bus/bus-objects.h
src/libsystemd/sd-bus/test-bus-introspect.c