Commit graph

43 commits

Author SHA1 Message Date
Roger A. Light
ae14eb34e1 Fix Coverity Scan 1499817 2022-10-16 23:23:43 +01:00
Roger A. Light
9c2d0ce401 Fix copy paste error.
Coverity Scan 1499794.
2022-10-16 07:29:50 +01:00
Roger A. Light
c5c7dd3f57 Fix payload check 2022-10-15 21:55:49 +01:00
Roger A. Light
65153eba45 Example plugin that bans based on payload 2022-10-15 20:41:51 +01:00
Roger A. Light
a2f91babdf Fix incorrect format specifier 2022-08-11 14:19:23 +01:00
Kai Buschulte
8b67883548 Remove old compatibility header support
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-08-08 09:25:16 +00:00
Roger A. Light
11b16756cb Windows fixes. 2022-07-21 15:51:52 +01:00
Kai Buschulte
8b5a86fd52 Introduce config-header cmake target
This is an interface cmake target which specifies include directories
required by the config.h places in the root of the project.

This header is a "public" header visible to plugins linking the
mosquitto exports.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-06-22 23:56:09 +01:00
Kai Buschulte
7e4746aac4 Fix missing symbols MacOS
Core symbols needed by plugins are now properly linked to their objects

 * Remove link_directories() call:

This specification is not necessary for our own libraries as cmake
shares this information over the targets.

If needed they should be specified target specific, like done for
the external DLT library.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-05-11 07:01:22 +00:00
Norbert Heusser
d4216c8cb6 Fixed CMakeLists.txt
* Addded missing files plugin_subscribe and plugin_unsubscribe to src/CMakeLists.txt
* Aligned mixed usage of all-keyword and all-plain in target_link_libra…ry definition in in CMakeLists.txt

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-04-06 10:26:03 +00:00
Roger A. Light
40d8015837 Add MOSQ_EVT_SUBSCRIBE and MOSQ_EVT_UNSUBSCRIBE events.
These are called when subscribe/unsubscribes actually succeed.
2022-03-31 14:24:11 +01:00
Roger A. Light
c661f475b4 Coverity Scan fixes - Invalid type in argument to printf format specifier
1453805
1453806
1486939
1486954
1486955
1486956
1486960
2022-03-24 08:11:11 +00:00
Roger A. Light
cbb01193a0 Rename persist retain_add to retain_set 2022-03-01 20:55:56 +00:00
Roger A. Light
8d94fdc688 Minor housekeeping. 2022-03-01 13:51:20 +00:00
Roger A. Light
68c002bc55 Plugin event counter example plugin. 2022-02-28 22:46:39 +00:00
Roger A. Light
02d08b9889 wildcard-temp: Don't attempt to delete from an empty list. 2022-02-09 23:39:37 +00:00
Roger A. Light
5a3b42d4a4 Use path vars in Makefiles. 2022-02-09 14:44:09 +00:00
Roger A. Light
aae7c406fe wildcard-temp plugin: Fix use after free. 2022-02-08 09:17:09 +00:00
Roger A. Light
bc1adfd46d CMake fixes.
Builtin websockets support.
Persist sqlite plugin build.
Broker cJSON support
Add wildcard-temp plugin.
2022-02-04 22:28:26 +00:00
Roger A. Light
34dc62be86 Document wildcard_temp plugin. 2022-01-11 10:21:43 +00:00
Roger A. Light
5b2e181c9f Example client lifetime and payload size stat plugins. 2021-12-27 22:56:21 +00:00
Roger A. Light
f43f136af8 Plugin for wildcard subscription blocking. 2021-12-22 12:15:39 +00:00
Roger A. Light
2976dffa71 Plugin template CMakeLists. 2021-11-16 16:17:31 +00:00
Roger Light
cd07f1136b Bump copyrights. 2021-11-03 22:10:06 +00:00
Roger A. Light
8ac11929cc Merge branch 'master' into develop 2021-10-27 17:19:33 +01:00
Roger A. Light
b9b065d2cc Compiler pedantry, and more checks in tests. 2021-10-14 11:39:46 +01:00
Roger A. Light
91e8344a3e Windows build fixes. 2021-10-13 14:39:09 +01:00
Roger A. Light
55d5d2e5f2 Fix for building when uthash not available. 2021-09-30 21:37:11 +01:00
Roger A. Light
2bfc7e7cc8 Do plugin callback unregistering automatically. 2021-09-30 12:42:13 +01:00
Roger A. Light
6763d94962 Add plugin version helper. 2021-09-30 10:56:48 +01:00
Roger A. Light
0f2f77c945 Improve idle / mux timeout performance. 2021-09-29 16:07:48 +01:00
Roger Light
dbd0d6f0d8 CMake build fixes. 2021-09-28 11:48:03 +01:00
Roger A. Light
7697406d3a Add topic modification example plugin. 2021-09-15 10:56:08 +01:00
Roger A. Light
3413001d47 Add mosquitto_plugin_set_info()
This allows plugins to tell the broker their name and version.
2021-09-07 23:13:06 +01:00
Roger A. Light
76c9e44deb Test config and scripts for example plugins. 2021-09-01 09:31:17 +01:00
Roger A. Light
869016b831 Add print-ip-on-publish example plugin. 2021-09-01 09:27:14 +01:00
Roger Light
fe007b2fe2 Example plugin that forces all messages to be retained. 2021-08-16 19:49:02 +01:00
Roger A. Light
214feb8f6b Merge branch 'fixes' into develop 2021-05-21 15:42:26 +01:00
Roger A. Light
0d3870585b Plugin delayed authentication. 2021-05-19 16:54:26 +01:00
Roger Light
0a90e62f93 CMake tidy. 2021-05-10 00:39:46 +01:00
Roger A. Light
b7b3a42e75 Strict build fixes. 2021-05-02 23:51:56 +01:00
Roger Light
ef7662ca8e Merge branch 'master' into develop 2021-04-24 23:32:48 +01:00
Roger A. Light
c17c6a9028 Move example plugins to their own directory. 2021-03-25 15:51:14 +00:00