summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-bus/bus-gvariant.h
blob: 644b5f4b20d6f13d58f0c9c49401b848f0d93e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

#include "macro.h"

int bus_gvariant_get_size(const char *signature) _pure_;
int bus_gvariant_get_alignment(const char *signature) _pure_;
int bus_gvariant_is_fixed_size(const char *signature) _pure_;

size_t bus_gvariant_determine_word_size(size_t sz, size_t extra);
void bus_gvariant_write_word_le(void *p, size_t sz, size_t value);
size_t bus_gvariant_read_word_le(void *p, size_t sz);