3 // SPDX-FileCopyrightText: 2020 Guus Sliepen <guus@meshlink.io>
4 // SPDX-License-Identifier: GPL-2.0-or-later
9 size_t prepare_packet(void *buf, size_t size, const char *name, const char *protocol, const char *transport, uint16_t port, int nkeys, const char **keys, const char **values, bool response);
10 size_t prepare_request(void *buf, size_t size, const char *protocol, const char *transport);
11 size_t prepare_response(void *buf, size_t size, const char *name, const char *protocol, const char *transport, uint16_t port, int nkeys, const char **keys, const char **values);
12 bool parse_response(const void *buf, size_t size, char **name, const char *protocol, const char *transport, uint16_t *port, int nkeys, const char **keys, char **values);
13 bool parse_request(const void *buf, size_t size, const char *protocol, const char *transport);