summaryrefslogtreecommitdiff
path: root/shared/mc-protocol.h
blob: e233e28783c031845ee4fa654fcb3355de268d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef foomcprotocolhfoo
#define foomcprotocolhfoo

int mc_is_handshake_complete(const char *buf, size_t len);

bool mc_protocol_parse_status_reply(const char *buf, size_t len,
				    unsigned *online, unsigned *max);

bool mc_protocol_create_status_request(char *buf, size_t len, size_t *rlen,
				       struct saddr *saddr);

#endif