@@ -131,6 +131,7 @@ enum mosq_opt_t {
131131 MOSQ_OPT_TCP_NODELAY = 11 ,
132132 MOSQ_OPT_BIND_ADDRESS = 12 ,
133133 MOSQ_OPT_TLS_USE_OS_CERTS = 13 ,
134+ MOSQ_OPT_DELAYED_ACK = 14 ,
134135};
135136
136137
@@ -1467,6 +1468,9 @@ libmosq_EXPORT int mosquitto_opts_set(struct mosquitto *mosq, enum mosq_opt_t op
14671468 * MOSQ_OPT_TLS_USE_OS_CERTS - Set to 1 to instruct the client to load and
14681469 * trust OS provided CA certificates for use with TLS connections.
14691470 * Set to 0 (the default) to only use manually specified CA certs.
1471+ *
1472+ * MOSQ_OPT_DELAYED_ACK - Set to 1 to instruct the client to acknowledge QoS 1
1473+ * messages after the on_message callback is called.
14701474 */
14711475libmosq_EXPORT int mosquitto_int_option (struct mosquitto * mosq , enum mosq_opt_t option , int value );
14721476
@@ -1665,22 +1669,6 @@ libmosq_EXPORT void mosquitto_user_data_set(struct mosquitto *mosq, void *obj);
16651669 */
16661670libmosq_EXPORT void * mosquitto_userdata (struct mosquitto * mosq );
16671671
1668- /*
1669- * Function: mosquitto_delay_puback
1670- *
1671- * Per Default, the library will acknowledge a QoS 1 message before it calls the
1672- * on_message callback. After <mosquitto_delay_puback> is called, the library
1673- * delays the acknowledgment until after the on_message callback has returned.
1674- *
1675- * Parameters:
1676- * mosq - a valid mosquitto instance.
1677- *
1678- * Returns:
1679- * MOSQ_ERR_SUCCESS - on success.
1680- * MOSQ_ERR_INVAL - if the input parameters were invalid.
1681- */
1682- libmosq_EXPORT int mosquitto_delay_puback (struct mosquitto * mosq );
1683-
16841672
16851673/* ======================================================================
16861674 *
0 commit comments