mosquitto/test/unit/stubs.c

39 lines
508 B
C
Raw Permalink Normal View History

2021-01-21 13:33:54 +00:00
#include "config.h"
#include <time.h>
#include <logging_mosq.h>
struct mosquitto_db{
};
2020-10-17 00:23:08 +00:00
int log__printf(struct mosquitto *mosq, unsigned int priority, const char *fmt, ...)
{
2021-01-21 13:33:54 +00:00
UNUSED(mosq);
UNUSED(priority);
UNUSED(fmt);
return 0;
}
time_t mosquitto_time(void)
{
return 123;
}
int net__socket_close(struct mosquitto_db *db, struct mosquitto *mosq)
{
2021-01-21 13:33:54 +00:00
UNUSED(db);
UNUSED(mosq);
return MOSQ_ERR_SUCCESS;
}
int send__pingreq(struct mosquitto *mosq)
{
2021-01-21 13:33:54 +00:00
UNUSED(mosq);
return MOSQ_ERR_SUCCESS;
}