Changes in protocols/jabber/jabber.h [c6ca3ee:04a927c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.h
rc6ca3ee r04a927c 27 27 #include <glib.h> 28 28 29 #include "xmltree.h"30 29 #include "bitlbee.h" 31 30 #include "md5.h" 31 #include "xmltree.h" 32 32 33 33 extern GSList *jabber_connections; … … 40 40 JFLAG_STREAM_RESTART = 4, /* Set when we want to restart the stream (after 41 41 SASL or TLS). */ 42 JFLAG_WA IT_SESSION = 8, /* Set if we sent a <session> tag and need a reply42 JFLAG_WANT_SESSION = 8, /* Set if the server wants a <session/> tag 43 43 before we continue. */ 44 JFLAG_WA IT_BIND = 16, /* ... for <bind> tag. */44 JFLAG_WANT_BIND = 16, /* ... for <bind> tag. */ 45 45 JFLAG_WANT_TYPING = 32, /* Set if we ever sent a typing notification, this 46 46 activates all XEP-85 related code. */ 47 47 JFLAG_XMLCONSOLE = 64, /* If the user added an xmlconsole buddy. */ 48 JFLAG_STARTTLS_DONE = 128, /* If a plaintext session was converted to TLS. */ 48 49 } jabber_flags_t; 49 50 … … 84 85 /* After changing one of these two (or the priority setting), call 85 86 presence_send_update() to inform the server about the changes. */ 86 struct jabber_away_state *away_state;87 const struct jabber_away_state *away_state; 87 88 char *away_message; 88 89 … … 107 108 }; 108 109 110 /* Somewhat messy data structure: We have a hash table with the bare JID as 111 the key and the head of a struct jabber_buddy list as the value. The head 112 is always a bare JID. If the JID has other resources (often the case, 113 except for some transports that don't support multiple resources), those 114 follow. In that case, the bare JID at the beginning doesn't actually 115 refer to a real session and should only be used for operations that 116 support incomplete JIDs. */ 109 117 struct jabber_buddy 110 118 { … … 120 128 char *away_message; 121 129 122 time_t last_ act;130 time_t last_msg; 123 131 jabber_buddy_flags_t flags; 124 132 … … 208 216 GET_BUDDY_EXACT = 2, /* Get an exact match (only makes sense with bare JIDs). */ 209 217 GET_BUDDY_FIRST = 4, /* No selection, simply get the first resource for this JID. */ 218 GET_BUDDY_BARE = 8, /* Get the bare version of the JID (possibly inexistent). */ 219 GET_BUDDY_BARE_OK = 16, /* Allow returning a bare JID if that seems better. */ 210 220 } get_buddy_flags_t; 211 221 … … 220 230 int jabber_buddy_remove( struct im_connection *ic, char *full_jid ); 221 231 int jabber_buddy_remove_bare( struct im_connection *ic, char *bare_jid ); 232 void jabber_buddy_remove_all( struct im_connection *ic ); 222 233 time_t jabber_get_timestamp( struct xt_node *xt ); 223 234 struct jabber_error *jabber_error_parse( struct xt_node *node, char *xmlns ); … … 241 252 242 253 /* conference.c */ 243 struct groupchat *jabber_chat_join( struct im_connection *ic, c har *room, char *nick,char *password );254 struct groupchat *jabber_chat_join( struct im_connection *ic, const char *room, const char *nick, const char *password ); 244 255 struct groupchat *jabber_chat_by_jid( struct im_connection *ic, const char *name ); 245 256 void jabber_chat_free( struct groupchat *c );
Note: See TracChangeset
for help on using the changeset viewer.