示例#1
0
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);
}
示例#2
0
文件: driver.c 项目: neuroidss/mqtt
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);
}
示例#3
0
/* {{{ 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);
}
示例#4
0
int mosquittopp::will_clear()
{
	return mosquitto_will_clear(m_mosq);
}