mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-03 20:55:14 +02:00
Replace void* with specific types
This commit is contained in:
@@ -20,16 +20,19 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef void (* mqtt_callback)(void *, void *);
|
typedef struct mqtt_client mqtt_client;
|
||||||
|
typedef struct mqtt_event_data_t mqtt_event_data_t;
|
||||||
|
|
||||||
|
typedef void (* mqtt_event_callback)(mqtt_client *client, mqtt_event_data_t *event_data);
|
||||||
|
|
||||||
typedef struct mqtt_settings {
|
typedef struct mqtt_settings {
|
||||||
mqtt_callback connected_cb;
|
mqtt_event_callback connected_cb;
|
||||||
mqtt_callback disconnected_cb;
|
mqtt_event_callback disconnected_cb; // unused
|
||||||
mqtt_callback reconnect_cb;
|
mqtt_event_callback reconnect_cb; // unused
|
||||||
|
|
||||||
mqtt_callback subscribe_cb;
|
mqtt_event_callback subscribe_cb;
|
||||||
mqtt_callback publish_cb;
|
mqtt_event_callback publish_cb;
|
||||||
mqtt_callback data_cb;
|
mqtt_event_callback data_cb;
|
||||||
|
|
||||||
char host[CONFIG_MQTT_MAX_HOST_LEN];
|
char host[CONFIG_MQTT_MAX_HOST_LEN];
|
||||||
uint32_t port;
|
uint32_t port;
|
||||||
|
Reference in New Issue
Block a user