Commit Graph

131 Commits (develop)

Author SHA1 Message Date
Roger A. Light 068778f7d9 Use new accessor functions where sensible. 2 years ago
Roger A. Light 9be12f91af Add mosquitto_property_*_value() alternate accessor functions. 2 years ago
Roger A. Light e44042c32b Add mosquitto_property_type(). 2 years ago
Roger A. Light ffe8c9c2a2 Remove cJSON include from mosquitto_broker.h. 2 years ago
Roger A. Light bc1315820c Don't require cJSON in mosquitto_broker.h 2 years ago
Roger Light 92c1899278 Add MOSQ_EVT_CLIENT_OFFLINE.
This allows plugins to know when a client with a non-zero session expiry
interval has gone offline.
2 years ago
Roger A. Light 2940d9cc4c Move control common helper functions to broker. 3 years ago
Roger A. Light 5265668734 Only typedef mosquitto_plugin_id_t once. 3 years ago
Roger A. Light d72e1c4949 Add `mosquitto_property_remove`
This isfor removing properties from property lists.
3 years ago
Roger A. Light eaaceaef58 Doc update 3 years ago
Roger A. Light da0eab36a4 Remove unused events 3 years ago
Roger A. Light fd330de080 client_id -> clientid rename. 3 years ago
Roger A. Light 0dc1fa5a49 Rejig SUBSCRIBE and UNSUBSCRIBE plugin event structs. 3 years ago
Roger A. Light 3e17494d34 Rename topic -> topic_filter in events. 3 years ago
Roger A. Light b94d0d5c81 Simplify sub__leaf struct. 3 years ago
Roger A. Light 9ef6c49266 Renaming and adding tests. 3 years ago
Abilio Marques e9af914cf0 add subcribe hooks on plugin API
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Abilio Marques 1677d1aed2 allow message modification on output
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Roger A. Light 1081661f74 Refactor client structs. 3 years ago
Roger A. Light 5364410615 Rename members 3 years ago
Roger A. Light 7013a3502d Refactor client_msg structs 3 years ago
Roger A. Light 3634f18bc9 Refactor subscription structs 3 years ago
Roger A. Light 100fd31530 Refactor base_msg structs. 3 years ago
Roger A. Light ef4ed0e97f Add missing "future" entry to persist evt structs 3 years ago
Roger A. Light fc84340820 Add mosquitto_unsubscribe2_v5_callback_set 3 years ago
Roger A. Light 7419aa7530 Add more lib msg sequence tests 3 years ago
Roger A. Light 5c0cfade12 Add http origin checking to built in websockets. 3 years ago
Roger A. Light 65a6191202 Set mosquitto_read_*() values to NULL when empty
`mosquitto_property_read_binary/string/string_pair` will now set the
name/value parameter to NULL if the binary/string is empty. This aligns the
behaviour with other property functions.

Closes #2648. Thanks to Alexander Fiebig.
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
Roger A. Light dd30dc8bd1 Fix typo 3 years ago
Roger A. Light fd68bf00c7 Merge branch 'master' into develop 3 years ago
Roger A. Light 966601f6b6 Bump version, new web post 3 years ago
Roger A. Light 6468bb4f9b Fix documentation omission around mosquitto_reinitialise.
Closes #2489. Thanks to rroguski
3 years ago
Roger A. Light ba6bbd5959 Add documentation of struct mosquitto_message to header.
Closes #2561.
3 years ago
Roger A. Light 86117d44d4 Windows: Add exports for new public broker functions. 3 years ago
Roger A. Light 1e4dbd81fd Update mosquitto_[un]subscribe*() requirements. 3 years ago
Roger A. Light b6b8039914 Fix use of `MOSQ_OPT_TLS_ENGINE` being unable to be used.
This was due to the openssl ctx not being initialised until starting to connect.

Closes #2537. Thanks to chessing-c4.
3 years ago
Roger A. Light 5731dd8653 Add mosquitto_persistence_location() for plugins. 3 years ago
Roger A. Light efc8d064de Bring mosquittopp more up to date with libmosquitto. 4 years ago
Roger A. Light 5fcb2bc13f Simplify use of headers. 4 years ago
Roger A. Light 4c72542eae Move mosquittopp header to include dir. 4 years ago
Roger A. Light 40d8015837 Add MOSQ_EVT_SUBSCRIBE and MOSQ_EVT_UNSUBSCRIBE events.
These are called when subscribe/unsubscribes actually succeed.
4 years ago
Roger A. Light 7552e944a8 Long overdue bump of in-development version number. 4 years ago
Roger A. Light a61298d03a Fix persist docs
Add mosquitto_persist_client_msg_clear() for completeness.
4 years ago
Roger A. Light 0a4a029fbf Persist plugin: Simplify cases where we don't take a copy.
Some members of the persist plugin interface are only used to find a
client struct, for example. There is no need for the plugin to allocate
a new copy and the broker to free it in that case.
4 years ago
Roger A. Light 2ed05539c7 Merge branch 'develop' of https://github.com/Daedaluz/mosquitto into Daedaluz-develop 4 years ago
Roger A. Light cbb01193a0 Rename persist retain_add to retain_set 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
Norbert Heusser e7e8b6e832 * Added list of connections to dynsec/getClient response
* Added new helper function mosquitto_apply_on_all_clients to broker
* Refactoring in dynamic-security plugin

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago
Roger A. Light 78ee04cc27 Add mosquitto_client() for plugins, rearrange changelog. 4 years ago