Commit bbaa9902 authored by Ian Craggs's avatar Ian Craggs

Remove const from eyecatchers #168

parent 5724aa79
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* Ian Craggs - automatic reconnect and offline buffering (send while disconnected) * Ian Craggs - automatic reconnect and offline buffering (send while disconnected)
* Ian Craggs - binary will message * Ian Craggs - binary will message
* Ian Craggs - binary password * Ian Craggs - binary password
* Ian Craggs - remove const on eyecatchers #168
*******************************************************************************/ *******************************************************************************/
/********************************************************************/ /********************************************************************/
...@@ -539,7 +540,7 @@ DLLExport int MQTTAsync_create(MQTTAsync* handle, const char* serverURI, const c ...@@ -539,7 +540,7 @@ DLLExport int MQTTAsync_create(MQTTAsync* handle, const char* serverURI, const c
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. must be MQCO. */ /** The eyecatcher for this structure. must be MQCO. */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0 */ /** The version number of this structure. Must be 0 */
int struct_version; int struct_version;
/** Whether to allow messages to be sent when the client library is not connected. */ /** Whether to allow messages to be sent when the client library is not connected. */
...@@ -569,7 +570,7 @@ DLLExport int MQTTAsync_createWithOptions(MQTTAsync* handle, const char* serverU ...@@ -569,7 +570,7 @@ DLLExport int MQTTAsync_createWithOptions(MQTTAsync* handle, const char* serverU
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. must be MQTW. */ /** The eyecatcher for this structure. must be MQTW. */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0 or 1 /** The version number of this structure. Must be 0 or 1
0 indicates no binary will message support 0 indicates no binary will message support
*/ */
...@@ -612,7 +613,7 @@ typedef struct ...@@ -612,7 +613,7 @@ typedef struct
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. Must be MQTS */ /** The eyecatcher for this structure. Must be MQTS */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0 */ /** The version number of this structure. Must be 0 */
int struct_version; int struct_version;
...@@ -656,7 +657,7 @@ typedef struct ...@@ -656,7 +657,7 @@ typedef struct
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. must be MQTC. */ /** The eyecatcher for this structure. must be MQTC. */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0, 1, 2, 3 4 or 5. /** The version number of this structure. Must be 0, 1, 2, 3 4 or 5.
* 0 signifies no SSL options and no serverURIs * 0 signifies no SSL options and no serverURIs
* 1 signifies no serverURIs * 1 signifies no serverURIs
...@@ -822,7 +823,7 @@ DLLExport int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions ...@@ -822,7 +823,7 @@ DLLExport int MQTTAsync_connect(MQTTAsync handle, const MQTTAsync_connectOptions
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. Must be MQTD. */ /** The eyecatcher for this structure. Must be MQTD. */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0 or 1. 0 signifies no SSL options */ /** The version number of this structure. Must be 0 or 1. 0 signifies no SSL options */
int struct_version; int struct_version;
/** /**
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* Ian Craggs, Allan Stockdill-Mander - SSL updates * Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - multiple server connection support * Ian Craggs - multiple server connection support
* Ian Craggs - MQTT 3.1.1 support * Ian Craggs - MQTT 3.1.1 support
* Ian Craggs - remove const from eyecatchers #168
*******************************************************************************/ *******************************************************************************/
/** /**
...@@ -424,7 +425,7 @@ DLLExport int MQTTClient_create(MQTTClient* handle, const char* serverURI, const ...@@ -424,7 +425,7 @@ DLLExport int MQTTClient_create(MQTTClient* handle, const char* serverURI, const
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. must be MQTW. */ /** The eyecatcher for this structure. must be MQTW. */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0 or 1 /** The version number of this structure. Must be 0 or 1
0 means there is no binary payload option 0 means there is no binary payload option
*/ */
...@@ -467,7 +468,7 @@ typedef struct ...@@ -467,7 +468,7 @@ typedef struct
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. Must be MQTS */ /** The eyecatcher for this structure. Must be MQTS */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0 */ /** The version number of this structure. Must be 0 */
int struct_version; int struct_version;
...@@ -520,7 +521,7 @@ typedef struct ...@@ -520,7 +521,7 @@ typedef struct
typedef struct typedef struct
{ {
/** The eyecatcher for this structure. must be MQTC. */ /** The eyecatcher for this structure. must be MQTC. */
const char struct_id[4]; char struct_id[4];
/** The version number of this structure. Must be 0, 1, 2, 3, 4 or 5. /** The version number of this structure. Must be 0, 1, 2, 3, 4 or 5.
* 0 signifies no SSL options and no serverURIs * 0 signifies no SSL options and no serverURIs
* 1 signifies no serverURIs * 1 signifies no serverURIs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment