|
|
|
@ -31,11 +31,13 @@ int packet__read_byte(struct mosquitto__packet *packet, uint8_t *byte);
|
|
|
|
|
int packet__read_bytes(struct mosquitto__packet *packet, void *bytes, uint32_t count);
|
|
|
|
|
int packet__read_string(struct mosquitto__packet *packet, char **str, int *length);
|
|
|
|
|
int packet__read_uint16(struct mosquitto__packet *packet, uint16_t *word);
|
|
|
|
|
int packet__read_uint32(struct mosquitto__packet *packet, uint32_t *word);
|
|
|
|
|
|
|
|
|
|
void packet__write_byte(struct mosquitto__packet *packet, uint8_t byte);
|
|
|
|
|
void packet__write_bytes(struct mosquitto__packet *packet, const void *bytes, uint32_t count);
|
|
|
|
|
void packet__write_string(struct mosquitto__packet *packet, const char *str, uint16_t length);
|
|
|
|
|
void packet__write_uint16(struct mosquitto__packet *packet, uint16_t word);
|
|
|
|
|
void packet__write_uint32(struct mosquitto__packet *packet, uint32_t word);
|
|
|
|
|
|
|
|
|
|
int packet__write(struct mosquitto *mosq);
|
|
|
|
|
#ifdef WITH_BROKER
|
|
|
|
|