1: #ifndef __MQTT_H
2: #define __MQTT_H
3:
4:
5: #define API_CLIENT_SIDE
6: #include <aitmqtt.h>
7: #include <mqttapi.h>
8:
9:
10: struct tagArgs {
11: mqtt_cli_t *cli;
12: io_sockaddr_t addr;
13: u_short ka;
14: mqtt_msg_t *msg;
15:
16: ait_val_t ConnID;
17: ait_val_t User;
18: ait_val_t Pass;
19:
20: struct {
21: ait_val_t Topic;
22: ait_val_t Msg;
23: } Will;
24:
25: u_char Dup;
26: u_char Retain;
27: u_char QoS;
28: u_char notClear;
29:
30: struct {
31: u_char isFile;
32: ait_val_t Value;
33: };
34:
35: ait_val_t Publish;
36:
37: mqtt_subscr_t *subscr;
38:
39: void (*free)(struct tagArgs*);
40: };
41:
42: extern struct tagArgs *args;
43:
44:
45: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>