@@ -138,6 +138,7 @@ enum mosq_opt_t {
138138 MOSQ_OPT_TCP_NODELAY = 11 ,
139139 MOSQ_OPT_BIND_ADDRESS = 12 ,
140140 MOSQ_OPT_TLS_USE_OS_CERTS = 13 ,
141+ MOSQ_OPT_DELAYED_ACK = 14 ,
141142};
142143
143144
@@ -1474,6 +1475,9 @@ libmosq_EXPORT int mosquitto_opts_set(struct mosquitto *mosq, enum mosq_opt_t op
14741475 * MOSQ_OPT_TLS_USE_OS_CERTS - Set to 1 to instruct the client to load and
14751476 * trust OS provided CA certificates for use with TLS connections.
14761477 * Set to 0 (the default) to only use manually specified CA certs.
1478+ *
1479+ * MOSQ_OPT_DELAYED_ACK - Set to 1 to instruct the client to acknowledge QoS 1
1480+ * messages after the on_message callback is called.
14771481 */
14781482libmosq_EXPORT int mosquitto_int_option (struct mosquitto * mosq , enum mosq_opt_t option , int value );
14791483
@@ -1672,22 +1676,6 @@ libmosq_EXPORT void mosquitto_user_data_set(struct mosquitto *mosq, void *obj);
16721676 */
16731677libmosq_EXPORT void * mosquitto_userdata (struct mosquitto * mosq );
16741678
1675- /*
1676- * Function: mosquitto_delay_puback
1677- *
1678- * Per Default, the library will acknowledge a QoS 1 message before it calls the
1679- * on_message callback. After <mosquitto_delay_puback> is called, the library
1680- * delays the acknowledgment until after the on_message callback has returned.
1681- *
1682- * Parameters:
1683- * mosq - a valid mosquitto instance.
1684- *
1685- * Returns:
1686- * MOSQ_ERR_SUCCESS - on success.
1687- * MOSQ_ERR_INVAL - if the input parameters were invalid.
1688- */
1689- libmosq_EXPORT int mosquitto_delay_puback (struct mosquitto * mosq );
1690-
16911679
16921680/* ======================================================================
16931681 *
0 commit comments