Commit Graph

142 Commits

Author SHA1 Message Date
Roger A. Light
16d465fa49 Refactor base64 functions to common static library. 2024-03-17 21:34:27 +00:00
Roger A. Light
9fe8b95dcf Refactor property functions to common static library. 2024-03-17 20:56:14 +00:00
Roger A. Light
b5c25cf1d0 Refactor memory functions to common static library. 2024-03-17 10:30:07 +00:00
Roger A. Light
a6344f833b Refactor time functions to common static library. 2024-03-17 07:58:45 +00:00
Roger A. Light
d17a88d916 Refactor headers for easier discovery. 2023-12-23 12:59:58 +00:00
Roger A. Light
fe4fe0102f Place client context in mosquitto_control_cmd for API simplicity 2023-10-11 15:12:49 +01:00
Roger A. Light
adc55572dc Add public mosquitto_strndup 2023-09-20 21:48:55 +01:00
Roger A. Light
e656e694ed Merge branch 'master' into develop 2023-09-09 15:20:40 +01:00
Roger A. Light
597d64b7fb Bump version. 2023-08-22 08:40:19 +01:00
Roger A. Light
afba3ec9a0 Bump version, update changelog. 2023-08-16 14:01:21 +01:00
Roger A. Light
068778f7d9 Use new accessor functions where sensible. 2023-05-31 22:55:41 +01:00
Roger A. Light
9be12f91af Add mosquitto_property_*_value() alternate accessor functions. 2023-05-31 22:48:48 +01:00
Roger A. Light
e44042c32b Add mosquitto_property_type(). 2023-05-29 11:21:22 +01:00
Roger A. Light
ffe8c9c2a2 Remove cJSON include from mosquitto_broker.h. 2023-04-24 22:08:21 +01:00
Roger A. Light
bc1315820c Don't require cJSON in mosquitto_broker.h 2023-04-24 20:09:41 +01:00
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.
2023-04-21 22:35:22 +01:00
Roger A. Light
2940d9cc4c Move control common helper functions to broker. 2023-04-02 00:27:15 +01:00
Roger A. Light
5265668734 Only typedef mosquitto_plugin_id_t once. 2023-03-03 15:31:45 +00:00
Roger A. Light
d72e1c4949 Add mosquitto_property_remove
This isfor removing properties from property lists.
2023-02-16 11:56:14 +00:00
Roger A. Light
eaaceaef58 Doc update 2023-01-17 21:41:49 +00:00
Roger A. Light
da0eab36a4 Remove unused events 2023-01-16 22:49:31 +00:00
Roger A. Light
fd330de080 client_id -> clientid rename. 2023-01-16 18:46:35 +00:00
Roger A. Light
0dc1fa5a49 Rejig SUBSCRIBE and UNSUBSCRIBE plugin event structs. 2023-01-16 17:48:56 +00:00
Roger A. Light
3e17494d34 Rename topic -> topic_filter in events. 2023-01-16 17:17:55 +00:00
Roger A. Light
b94d0d5c81 Simplify sub__leaf struct. 2023-01-16 12:34:32 +00:00
Roger A. Light
9ef6c49266 Renaming and adding tests. 2023-01-16 10:31:13 +00:00
Abilio Marques
e9af914cf0 add subcribe hooks on plugin API
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2023-01-16 10:30:57 +00:00
Abilio Marques
1677d1aed2 allow message modification on output
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2023-01-16 10:29:50 +00:00
Roger A. Light
1081661f74 Refactor client structs. 2023-01-16 10:21:12 +00:00
Roger A. Light
5364410615 Rename members 2023-01-16 10:21:12 +00:00
Roger A. Light
7013a3502d Refactor client_msg structs 2023-01-16 10:21:12 +00:00
Roger A. Light
3634f18bc9 Refactor subscription structs 2023-01-16 10:21:12 +00:00
Roger A. Light
100fd31530 Refactor base_msg structs. 2023-01-16 10:21:12 +00:00
Roger A. Light
ef4ed0e97f Add missing "future" entry to persist evt structs 2022-12-16 22:34:58 +00:00
Roger A. Light
fc84340820 Add mosquitto_unsubscribe2_v5_callback_set 2022-12-07 15:05:54 +00:00
Roger A. Light
7419aa7530 Add more lib msg sequence tests 2022-12-07 15:05:54 +00:00
Roger A. Light
5c0cfade12 Add http origin checking to built in websockets. 2022-12-03 22:14:12 +00:00
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.
2022-11-03 18:31:19 +00:00
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.
2022-10-09 22:17:47 +01:00
Roger A. Light
dd30dc8bd1 Fix typo 2022-10-09 11:10:30 +01:00
Arvin
dcad2e410a Fix comments errors, it is the client that sends PING to broker actively 2022-08-24 23:28:06 +08:00
Roger A. Light
fd68bf00c7 Merge branch 'master' into develop 2022-08-17 16:18:24 +01:00
Roger A. Light
966601f6b6 Bump version, new web post 2022-08-16 13:03:44 +01:00
Roger A. Light
6468bb4f9b Fix documentation omission around mosquitto_reinitialise.
Closes #2489. Thanks to rroguski
2022-08-10 14:31:34 +01:00
Roger A. Light
ba6bbd5959 Add documentation of struct mosquitto_message to header.
Closes #2561.
2022-08-08 00:01:56 +01:00
Roger A. Light
86117d44d4 Windows: Add exports for new public broker functions. 2022-07-21 15:07:44 +01:00
Roger A. Light
1e4dbd81fd Update mosquitto_[un]subscribe*() requirements. 2022-07-20 20:04:05 +01:00
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.
2022-05-17 17:19:17 +01:00
Roger A. Light
5731dd8653 Add mosquitto_persistence_location() for plugins. 2022-05-05 16:18:54 +01:00
Roger A. Light
efc8d064de Bring mosquittopp more up to date with libmosquitto. 2022-04-15 23:48:31 +01:00