diff options
author | Sven Eden <sven.eden@prydeworx.com> | 2018-10-24 07:43:37 +0200 |
---|---|---|
committer | Sven Eden <sven.eden@prydeworx.com> | 2018-11-08 08:02:57 +0100 |
commit | 3ab9309e18658e22c1322eef168871d26cd49fb3 (patch) | |
tree | 0bc4b954e1475b00ee962c46779fda824bb9488d /src/basic/xml.h | |
parent | 00b618db56b496823d74a0cc61537138ad6cb367 (diff) |
Prep v240 : Add busctl to be shipped with elogind.
(emersion):
> sd-bus is shipped with elogind, so it makes sense to ship the
> busctl command, too.
This is not only a nice helper tool to take a closer look at what is
happening on the dbus, it will also prove to be usefull if something
like issue #59 happens ever again. There we had to use dbus-send
directly to dissect the bus traffic.
Bug: #86
Closes: #86
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
Diffstat (limited to 'src/basic/xml.h')
-rw-r--r-- | src/basic/xml.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/basic/xml.h b/src/basic/xml.h new file mode 100644 index 000000000..8da2ff5f7 --- /dev/null +++ b/src/basic/xml.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +enum { + XML_END, + XML_TEXT, + XML_TAG_OPEN, + XML_TAG_CLOSE, + XML_TAG_CLOSE_EMPTY, + XML_ATTRIBUTE_NAME, + XML_ATTRIBUTE_VALUE, +}; + +int xml_tokenize(const char **p, char **name, void **state, unsigned *line); |