version 1.1.2.4, 2011/12/09 13:43:55
|
version 1.2, 2012/01/27 15:05:38
|
Line 8 struct tagStore {
|
Line 8 struct tagStore {
|
|
|
mqtt_subscr_t st_subscr; |
mqtt_subscr_t st_subscr; |
|
|
SLIST_ENTRY(tagStore) st_node; | TAILQ_ENTRY(tagStore) st_node; |
}; |
}; |
|
|
struct tagSession { |
struct tagSession { |
Line 40 struct tagSession {
|
Line 40 struct tagSession {
|
} sess_will; |
} sess_will; |
|
|
/* Data Storage by QoS class */ |
/* Data Storage by QoS class */ |
SLIST_HEAD(qosStore, tagStore) sess_store[MQTT_QOS_RESERVED]; | TAILQ_HEAD(qosStore, tagStore) sess_sndqueue; |
|
|
TAILQ_ENTRY(tagSession) sess_node; |
TAILQ_ENTRY(tagSession) sess_node; |
}; |
}; |
|
|
typedef TAILQ_HEAD(, tagSession) sessions_t; |
typedef TAILQ_HEAD(, tagSession) sessions_t; |
|
|
|
|
extern sessions_t Sessions; |
extern sessions_t Sessions; |
extern sched_root_task_t *root; |
extern sched_root_task_t *root; |
extern sl_config cfg; |
extern sl_config cfg; |
|
extern pthread_mutex_t mtx_sess, mtx_pub; |
|
|
|
|
#endif |
#endif |