mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 15:23:46 +08:00
Simplify use of headers.
This commit is contained in:
@@ -64,6 +64,8 @@ extern "C" {
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <mqtt_protocol.h>
|
||||
|
||||
#define LIBMOSQUITTO_MAJOR 2
|
||||
#define LIBMOSQUITTO_MINOR 1
|
||||
#define LIBMOSQUITTO_REVISION 0
|
||||
|
||||
@@ -40,6 +40,8 @@ extern "C" {
|
||||
#include <time.h>
|
||||
|
||||
#include <mosquitto.h>
|
||||
#include <mosquitto_plugin.h>
|
||||
#include <mqtt_protocol.h>
|
||||
|
||||
struct mosquitto;
|
||||
typedef struct mqtt5__property mosquitto_property;
|
||||
|
||||
@@ -66,6 +66,8 @@ struct mosquitto_acl_msg {
|
||||
bool retain;
|
||||
};
|
||||
|
||||
typedef struct mosquitto_plugin_id_t mosquitto_plugin_id_t;
|
||||
|
||||
#ifdef WIN32
|
||||
# define mosq_plugin_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
set(CPP_SRC mosquittopp.cpp mosquittopp.h)
|
||||
set(CPP_SRC mosquittopp.cpp ../../include/mosquittopp.h)
|
||||
|
||||
add_library(mosquittopp SHARED
|
||||
${CPP_SRC}
|
||||
|
||||
Reference in New Issue
Block a user