From 806dadcdce0316cd45d1035b311bd1be39bfa79c Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 25 May 2022 16:35:22 +0100 Subject: [PATCH] Fix tests build. --- test/unit/persist_read_stubs.c | 8 ++++++++ test/unit/persist_write_stubs.c | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/test/unit/persist_read_stubs.c b/test/unit/persist_read_stubs.c index 568016ec..0c77c1d8 100644 --- a/test/unit/persist_read_stubs.c +++ b/test/unit/persist_read_stubs.c @@ -148,3 +148,11 @@ void db__msg_store_ref_inc(struct mosquitto_msg_store *store) store->ref_count++; } +int session_expiry__add_from_persistence(struct mosquitto_db *db, struct mosquitto *context, time_t expiry_time) +{ + UNUSED(db); + UNUSED(context); + UNUSED(expiry_time); + + return 0; +} diff --git a/test/unit/persist_write_stubs.c b/test/unit/persist_write_stubs.c index 97bb8e05..76cc7a8c 100644 --- a/test/unit/persist_write_stubs.c +++ b/test/unit/persist_write_stubs.c @@ -69,3 +69,12 @@ int send__pubrel(struct mosquitto *mosq, uint16_t mid) return MOSQ_ERR_SUCCESS; } +int session_expiry__add_from_persistence(struct mosquitto_db *db, struct mosquitto *context, time_t expiry_time) +{ + UNUSED(db); + UNUSED(context); + UNUSED(expiry_time); + + return 0; +} +