Diff for /mqtt/inc/mqttd.h between versions 1.2.2.3 and 1.2.2.13

version 1.2.2.3, 2012/04/11 15:08:26 version 1.2.2.13, 2012/06/26 08:05:58
Line 2 Line 2
 #define __MQTTD_H  #define __MQTTD_H
   
   
   #define API_SERVER_SIDE
   #include <mqttapi.h>
   
   
 struct tagStore {  struct tagStore {
         char                            st_qos;  
         u_short                         st_msgid;          u_short                         st_msgid;
   
         mqtt_subscr_t                   st_subscr;          mqtt_subscr_t                   st_subscr;
   
        TAILQ_ENTRY(tagStore)                st_node;        SLIST_ENTRY(tagStore)                st_node;
 };  };
   
 struct tagSession {  struct tagSession {
         /* client session thread id */  
         pthread_t                       sess_tid;  
         pthread_mutex_t                 sess_mtx;  
         /* server dispatcher */          /* server dispatcher */
         mqtt_srv_t                      *sess_srv;          mqtt_srv_t                      *sess_srv;
   
Line 42  struct tagSession { Line 42  struct tagSession {
                 char                    *msg;                  char                    *msg;
         } sess_will;          } sess_will;
   
        /* Data Storage by QoS class */        /* session subscriptions & send pubs */
        TAILQ_HEAD(qosStore, tagStore)        sess_sndqueue;        SLIST_HEAD(tStore, tagStore)        sess_subscr;
   
         TAILQ_ENTRY(tagSession)         sess_node;          TAILQ_ENTRY(tagSession)         sess_node;
 };  };
Line 53  typedef TAILQ_HEAD(, tagSession) sessions_t; Line 53  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 cfg_root_t cfg;  extern cfg_root_t cfg;
extern pthread_mutex_t mtx_sess, mtx_pub;
 
 /* function prototypes */
 void *startSession(sched_task_t *task);
   
   
 #endif  #endif

Removed from v.1.2.2.3  
changed lines
  Added in v.1.2.2.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>