static int ctx_will_clear(lua_State *L) { ctx_t *ctx = ctx_check(L, 1); int rc = mosquitto_will_clear(ctx->mosq); return mosq__pstatus(L, rc); }
static int mosq_will_clear(lua_State *L) { mosq_t *ctx = mosq_get(L, 1); int rc = mosquitto_will_clear(ctx->mosq); return make_mosq_status_result(L, rc); }
/* {{{ Mosquitto\Client::clearWill() */ PHP_METHOD(Mosquitto_Client, clearWill) { mosquitto_client_object *object; int retval; PHP_MOSQUITTO_ERROR_HANDLING(); if (zend_parse_parameters_none() == FAILURE) { PHP_MOSQUITTO_RESTORE_ERRORS(); return; } PHP_MOSQUITTO_RESTORE_ERRORS(); object = (mosquitto_client_object *) mosquitto_client_object_get(getThis() TSRMLS_CC); retval = mosquitto_will_clear(object->client); php_mosquitto_handle_errno(retval, errno TSRMLS_CC); }
int mosquittopp::will_clear() { return mosquitto_will_clear(m_mosq); }