MG_DISABLE_MQTT -> MG_ENABLE_MQTT

PUBLISHED_FROM=34e6028b68e286f81be7ba0f8ae73b760f144131
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-10-13 21:08:22 +00:00
1 parent 75059d1bdc
commit b298d46a40
5 files changed
+17 -10

No files matched your search

+3 -3
View File
@@ -109,7 +109,7 @@ struct ctl_msg {
char message[MG_CTL_MSG_MESSAGE_SIZE];
};
#if !MG_DISABLE_MQTT
#if MG_ENABLE_MQTT
struct mg_mqtt_message;
MG_INTERNAL int parse_mqtt(struct mbuf *io, struct mg_mqtt_message *mm);
#endif
@@ -7979,7 +7979,7 @@ int mg_match_prefix(const char *pattern, int pattern_len, const char *str) {
* All rights reserved
*/
#if !MG_DISABLE_MQTT
#if MG_ENABLE_MQTT
#include <string.h>
@@ -8293,7 +8293,7 @@ void mg_mqtt_disconnect(struct mg_connection *nc) {
mg_mqtt_prepend_header(nc, MG_MQTT_CMD_DISCONNECT, 0, 0);
}
#endif /* MG_DISABLE_MQTT */
#endif /* MG_ENABLE_MQTT */
#ifdef MG_MODULE_LINES
#line 1 "mongoose/src/mqtt_server.c"
#endif