stubs.c 508 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "config.h"
  2. #include <time.h>
  3. #include <logging_mosq.h>
  4. struct mosquitto_db{
  5. };
  6. int log__printf(struct mosquitto *mosq, unsigned int priority, const char *fmt, ...)
  7. {
  8. UNUSED(mosq);
  9. UNUSED(priority);
  10. UNUSED(fmt);
  11. return 0;
  12. }
  13. time_t mosquitto_time(void)
  14. {
  15. return 123;
  16. }
  17. int net__socket_close(struct mosquitto_db *db, struct mosquitto *mosq)
  18. {
  19. UNUSED(db);
  20. UNUSED(mosq);
  21. return MOSQ_ERR_SUCCESS;
  22. }
  23. int send__pingreq(struct mosquitto *mosq)
  24. {
  25. UNUSED(mosq);
  26. return MOSQ_ERR_SUCCESS;
  27. }