Commit Graph

16 Commits (88b20c91136e21407682d6a43b06d271690a4906)

Author SHA1 Message Date
Roger Light 1f559f1a71
Merge pull request #2624 from buschulte/fix-some-compiler-warinngs
Add missing callback set calls for MQTTv5 in C++ lib wrapper
3 years ago
Roger A. Light 16feb14a57 Persistence interface updates and sqlite plugin fixes
The MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR event has been removed, due to
never being called. It is the responsibility of the plugin to remove
client subscriptions and client messages when the client is removed.

Lots of persist test improvements and additions - mostly checking item
counts.
3 years ago
Kai Buschulte ec8566ba0d Fix conversion warnings
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light e5e41c17c2 The persistence interface shouldn't delay retained messages.
Let plugins do that if they require it.
3 years ago
Roger A. Light 79f4c12141 Pass missing parameters to client_msg update for persist plugins. 4 years ago
Roger A. Light b4a0255f1c Process retain persist events only every 10 seconds. 4 years ago
Roger A. Light cbb01193a0 Rename persist retain_add to retain_set 4 years ago
Roger A. Light c985736866 Restrict persistence events to persisted clients only. 4 years ago
Roger A. Light 2d3b152a22 Rename of mosquitto_msg_store struct.
struct mosquitto_msg_store -> struct mosquitto_base_msg

This is the base message which client messages and retained messages
refer to. The base messages are still held in the message store.

This change comes about because the persistence interface exposes these
message types. Prior to this commit the different messages were "msg",
"client_msg", and "retain". After this commit there is "base_msg",
"client_msg", and and "retain_msg" in the persist interface.
4 years ago
Roger A. Light 0a0f4ead42 Plugin interface interface and test improvements. 4 years ago
Roger A. Light 2fafdd2256 Don't send persist updates on shutdown. 4 years ago
Roger A. Light 01b3e04362 Rename `remove` to `delete` in external interface.
This is consistent with usage in the dynsec plugin.
4 years ago
Roger A. Light 9ce09de2e6 Add MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR plugin event. 4 years ago
Roger A. Light 3daf76257b Various persistence plugin fixes. 4 years ago
Roger A. Light 68fbb7b5bb auth method needs persisting. 4 years ago
Roger A. Light 0f8733627a Plugin persistence interface. 4 years ago