diff options
Diffstat (limited to 'libs/libcurl/src/mqtt.h')
-rw-r--r-- | libs/libcurl/src/mqtt.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/libs/libcurl/src/mqtt.h b/libs/libcurl/src/mqtt.h index ea81f40448..53997588ee 100644 --- a/libs/libcurl/src/mqtt.h +++ b/libs/libcurl/src/mqtt.h @@ -28,36 +28,4 @@ extern const struct Curl_handler Curl_handler_mqtt;
#endif
-enum mqttstate {
- MQTT_FIRST, /* 0 */
- MQTT_REMAINING_LENGTH, /* 1 */
- MQTT_CONNACK, /* 2 */
- MQTT_SUBACK, /* 3 */
- MQTT_SUBACK_COMING, /* 4 - the SUBACK remainder */
- MQTT_PUBWAIT, /* 5 - wait for publish */
- MQTT_PUB_REMAIN, /* 6 - wait for the remainder of the publish */
-
- MQTT_NOSTATE /* 7 - never used an actual state */
-};
-
-struct mqtt_conn {
- enum mqttstate state;
- enum mqttstate nextstate; /* switch to this after remaining length is
- done */
- unsigned int packetid;
-};
-
-/* protocol-specific transfer-related data */
-struct MQTT {
- char *sendleftovers;
- size_t nsend; /* size of sendleftovers */
-
- /* when receiving */
- size_t npacket; /* byte counter */
- unsigned char firstbyte;
- size_t remaining_length;
- struct dynbuf recvbuf;
- unsigned char pkt_hd[4]; /* for decoding the arriving packet length */
-};
-
#endif /* HEADER_CURL_MQTT_H */
|