diff options
Diffstat (limited to 'shared/mc-protocol.h')
-rw-r--r-- | shared/mc-protocol.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shared/mc-protocol.h b/shared/mc-protocol.h new file mode 100644 index 0000000..8ecc02a --- /dev/null +++ b/shared/mc-protocol.h @@ -0,0 +1,13 @@ +#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 + |