Diff for /mqtt/inc/mqttd.h between versions 1.2.2.5 and 1.2.2.7

version 1.2.2.5, 2012/04/24 08:06:08 version 1.2.2.7, 2012/04/25 16:36:25
Line 2 Line 2
 #define __MQTTD_H  #define __MQTTD_H
   
   
   #define API_SERVER_SIDE
   #include <mqttapi.h>
   
   
 struct tagStore {  struct tagStore {
         char                            st_qos;          char                            st_qos;
         u_short                         st_msgid;          u_short                         st_msgid;
Line 42  struct tagSession { Line 46  struct tagSession {
                 char                    *msg;                  char                    *msg;
         } sess_will;          } sess_will;
   
        /* Data Storage by QoS class */        /* session subscriptions */
        SLIST_HEAD(tStore, tagStore)    sess_txque[MQTT_QOS_RESERVED];        SLIST_HEAD(tStore, tagStore)    sess_subscr;
 
         TAILQ_ENTRY(tagSession)         sess_node;          TAILQ_ENTRY(tagSession)         sess_node;
 };  };
 typedef TAILQ_HEAD(, tagSession) sessions_t;  typedef TAILQ_HEAD(, tagSession) sessions_t;
Line 59  struct tagPub { Line 64  struct tagPub {
         TAILQ_ENTRY(tagPub)     pub_node;          TAILQ_ENTRY(tagPub)     pub_node;
 };  };
 typedef TAILQ_HEAD(, tagPub)    pubs_t;  typedef TAILQ_HEAD(, tagPub)    pubs_t;
#define PUB_LOCK           pthread_mutex_lock(&mtx_pub)#define PUBS_LOCK           pthread_mutex_lock(&mtx_pub)
#define PUB_UNLOCK         pthread_mutex_unlock(&mtx_pub)#define PUBS_UNLOCK         pthread_mutex_unlock(&mtx_pub)
   
   
 extern sessions_t Sessions;  extern sessions_t Sessions;

Removed from v.1.2.2.5  
changed lines
  Added in v.1.2.2.7


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