summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-gvariant.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-05 02:46:54 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-05 02:47:36 +0100
commitc1b9d935725103e95901f347b8981647ce4dd546 (patch)
tree4f5474c2022f7812d7e261b29896e89de14cf490 /src/libsystemd-bus/bus-gvariant.h
parent65dae17a2f890b12a07dd4901b3db02b1031c463 (diff)
bus: add support for serializing to gvariant
(deserialization is still missing, hence this is not hooked up to kdbus)
Diffstat (limited to 'src/libsystemd-bus/bus-gvariant.h')
-rw-r--r--src/libsystemd-bus/bus-gvariant.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-gvariant.h b/src/libsystemd-bus/bus-gvariant.h
new file mode 100644
index 0000000000..091a47213d
--- /dev/null
+++ b/src/libsystemd-bus/bus-gvariant.h
@@ -0,0 +1,26 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+#pragma once
+
+/***
+ This file is part of systemd.
+
+ Copyright 2013 Lennart Poettering
+
+ systemd is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
+ (at your option) any later version.
+
+ systemd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
+
+int bus_gvariant_get_size(char c);
+int bus_gvariant_get_alignment(const char *signature);
+int bus_gvariant_is_fixed_size(const char *signature);