Jabber WindowGram Client (JWGC)

Introduction Screenshots Installation Downloads
Documentation Browse Source Resources Project Site

Stable Version
-none-

Latest Version
beta5



Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

libjabber_types.h File Reference

Go to the source code of this file.

Data Structures

struct  jid_struct
struct  jabpacket_struct
struct  jabconn_struct
struct  terror_struct

Defines

#define _LIBJABBER_TYPES_H_   1
#define JID_RESOURCE   1
#define JID_USER   2
#define JID_SERVER   4
#define JABPACKET_UNKNOWN   0
#define JABPACKET_MESSAGE   1
#define JABPACKET_PRESENCE   2
#define JABPACKET_IQ   3
#define JABPACKET__UNKNOWN   0
#define JABPACKET__NONE   1
#define JABPACKET__ERROR   2
#define JABPACKET__CHAT   3
#define JABPACKET__GROUPCHAT   4
#define JABPACKET__GET   5
#define JABPACKET__SET   6
#define JABPACKET__RESULT   7
#define JABPACKET__SUBSCRIBE   8
#define JABPACKET__SUBSCRIBED   9
#define JABPACKET__UNSUBSCRIBE   10
#define JABPACKET__UNSUBSCRIBED   11
#define JABPACKET__AVAILABLE   12
#define JABPACKET__UNAVAILABLE   13
#define JABPACKET__PROBE   14
#define JABPACKET__HEADLINE   15
#define JABPACKET__INVISIBLE   16
#define JABPACKET__INTERNAL   17
#define JABCONN_STATE_OFF   0
#define JABCONN_STATE_CONNECTED   1
#define JABCONN_STATE_ON   2
#define JABCONN_STATE_AUTH   3
#define TERROR_BAD   (terror){400,"Bad Request"}
#define TERROR_AUTH   (terror){401,"Unauthorized"}
#define TERROR_PAY   (terror){402,"Payment Required"}
#define TERROR_FORBIDDEN   (terror){403,"Forbidden"}
#define TERROR_NOTFOUND   (terror){404,"Not Found"}
#define TERROR_NOTALLOWED   (terror){405,"Not Allowed"}
#define TERROR_NOTACCEPTABLE   (terror){406,"Not Acceptable"}
#define TERROR_REGISTER   (terror){407,"Registration Required"}
#define TERROR_REQTIMEOUT   (terror){408,"Request Timeout"}
#define TERROR_CONFLICT   (terror){409,"Conflict"}
#define TERROR_INTERNAL   (terror){500,"Internal Server Error"}
#define TERROR_NOTIMPL   (terror){501,"Not Implemented"}
#define TERROR_EXTERNAL   (terror){502,"Remote Server Error"}
#define TERROR_UNAVAIL   (terror){503,"Service Unavailable"}
#define TERROR_EXTTIMEOUT   (terror){504,"Remote Server Timeout"}
#define TERROR_DISCONNECTED   (terror){510,"Disconnected"}
#define NSCHECK(x, n)   (j_strcmp(xmlnode_get_attrib(x,"xmlns"),n) == 0)
#define NS_CLIENT   "jabber:client"
#define NS_SERVER   "jabber:server"
#define NS_AUTH   "jabber:iq:auth"
#define NS_REGISTER   "jabber:iq:register"
#define NS_ROSTER   "jabber:iq:roster"
#define NS_OFFLINE   "jabber:x:offline"
#define NS_AGENT   "jabber:iq:agent"
#define NS_AGENTS   "jabber:iq:agents"
#define NS_DELAY   "jabber:x:delay"
#define NS_VERSION   "jabber:iq:version"
#define NS_TIME   "jabber:iq:time"
#define NS_VCARD   "vcard-temp"
#define NS_PRIVATE   "jabber:iq:private"
#define NS_SEARCH   "jabber:iq:search"
#define NS_OOB   "jabber:iq:oob"
#define NS_XOOB   "jabber:x:oob"
#define NS_ADMIN   "jabber:iq:admin"
#define NS_FILTER   "jabber:iq:filter"
#define NS_AUTH_0K   "jabber:iq:auth:0k"
#define NS_BROWSE   "jabber:iq:browse"
#define NS_EVENT   "jabber:x:event"
#define NS_CONFERENCE   "jabber:iq:conference"
#define NS_SIGNED   "jabber:x:signed"
#define NS_ENCRYPTED   "jabber:x:encrypted"
#define NS_GATEWAY   "jabber:iq:gateway"
#define NS_LAST   "jabber:iq:last"
#define NS_ENVELOPE   "jabber:x:envelope"
#define NS_EXPIRE   "jabber:x:expire"
#define NS_XHTML   "http://www.w3.org/1999/xhtml"
#define NS_XDBGINSERT   "jabber:xdb:ginsert"
#define NS_XDBNSLIST   "jabber:xdb:nslist"
#define NS_DATA   "jabber:x:data"
#define TMSG_NORMAL   "normal"
#define TMSG_ERROR   "error"
#define TMSG_CHAT   "chat"
#define TMSG_GROUPCHAT   "groupchat"
#define TMSG_HEADLINE   "headline"

Typedefs

typedef jid_structjid
typedef jabpacket_structjabpacket
typedef jabpacket_struct _jabpacket
typedef jabconn_structjabconn
typedef jabconn_struct jabconn_struct
typedef void(* jabconn_state_h )(jabconn j, int state)
typedef void(* jabconn_packet_h )(jabconn j, jabpacket p)
typedef terror_struct terror


Define Documentation

#define _LIBJABBER_TYPES_H_   1
 

Definition at line 24 of file libjabber_types.h.

#define JABCONN_STATE_AUTH   3
 

Definition at line 95 of file libjabber_types.h.

Referenced by jab_contype_to_ascii(), jab_on_state_handler(), jab_reg(), and jab_start().

#define JABCONN_STATE_CONNECTED   1
 

Definition at line 93 of file libjabber_types.h.

Referenced by jab_contype_to_ascii(), jab_on_state_handler(), and jab_start().

#define JABCONN_STATE_OFF   0
 

Definition at line 92 of file libjabber_types.h.

Referenced by jab_contype_to_ascii(), jab_on_state_handler(), jab_recv(), and jab_start().

#define JABCONN_STATE_ON   2
 

Definition at line 94 of file libjabber_types.h.

Referenced by jab_contype_to_ascii(), jab_on_state_handler(), and jab_startup().

#define JABPACKET__AVAILABLE   12
 

Definition at line 66 of file libjabber_types.h.

Referenced by contact_status_change(), jab_on_state_handler(), jab_subtype_to_ascii(), jwgc_change_presence_event_handler(), and process_presence().

#define JABPACKET__CHAT   3
 

Definition at line 57 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii().

#define JABPACKET__ERROR   2
 

Definition at line 56 of file libjabber_types.h.

Referenced by jab_on_packet_handler(), jab_subtype_to_ascii(), jabutil_iqnew(), and process_presence().

#define JABPACKET__GET   5
 

Definition at line 59 of file libjabber_types.h.

Referenced by jab_auth(), jab_on_packet_handler(), jab_on_state_handler(), jab_subtype_to_ascii(), jabutil_iqnew(), and jwg_on_event_handler().

#define JABPACKET__GROUPCHAT   4
 

Definition at line 58 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii().

#define JABPACKET__HEADLINE   15
 

Definition at line 69 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii().

#define JABPACKET__INTERNAL   17
 

Definition at line 71 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii().

#define JABPACKET__INVISIBLE   16
 

Definition at line 70 of file libjabber_types.h.

Referenced by jabutil_presnew(), and process_presence().

#define JABPACKET__NONE   1
 

Definition at line 55 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii().

#define JABPACKET__PROBE   14
 

Definition at line 68 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii(), and jabutil_presnew().

#define JABPACKET__RESULT   7
 

Definition at line 61 of file libjabber_types.h.

Referenced by jab_on_packet_handler(), jab_subtype_to_ascii(), and jabutil_iqnew().

#define JABPACKET__SET   6
 

Definition at line 60 of file libjabber_types.h.

Referenced by jab_auth(), jab_on_packet_handler(), jab_reg(), jab_subtype_to_ascii(), jabutil_iqnew(), and jwg_on_event_handler().

#define JABPACKET__SUBSCRIBE   8
 

Definition at line 62 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii(), jabutil_presnew(), jwg_on_event_handler(), and process_presence().

#define JABPACKET__SUBSCRIBED   9
 

Definition at line 63 of file libjabber_types.h.

Referenced by jabutil_presnew(), and process_presence().

#define JABPACKET__UNAVAILABLE   13
 

Definition at line 67 of file libjabber_types.h.

Referenced by contact_status_change(), jab_subtype_to_ascii(), jabutil_presnew(), jwg_on_event_handler(), and process_presence().

#define JABPACKET__UNKNOWN   0
 

Definition at line 54 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii().

#define JABPACKET__UNSUBSCRIBE   10
 

Definition at line 64 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii(), jabutil_presnew(), jwg_on_event_handler(), and process_presence().

#define JABPACKET__UNSUBSCRIBED   11
 

Definition at line 65 of file libjabber_types.h.

Referenced by jab_subtype_to_ascii(), jabutil_presnew(), and process_presence().

#define JABPACKET_IQ   3
 

Definition at line 52 of file libjabber_types.h.

Referenced by jab_on_packet_handler(), jab_type_to_ascii(), and jabpacket_subtype().

#define JABPACKET_MESSAGE   1
 

Definition at line 50 of file libjabber_types.h.

Referenced by jab_on_packet_handler(), jab_type_to_ascii(), and jabpacket_subtype().

#define JABPACKET_PRESENCE   2
 

Definition at line 51 of file libjabber_types.h.

Referenced by jab_on_packet_handler(), jab_type_to_ascii(), and jabpacket_subtype().

#define JABPACKET_UNKNOWN   0
 

Definition at line 49 of file libjabber_types.h.

Referenced by jab_type_to_ascii().

#define JID_RESOURCE   1
 

Definition at line 30 of file libjabber_types.h.

Referenced by jid_cmpx(), and jid_set().

#define JID_SERVER   4
 

Definition at line 32 of file libjabber_types.h.

Referenced by jid_cmpx(), and jid_set().

#define JID_USER   2
 

Definition at line 31 of file libjabber_types.h.

Referenced by jid_cmpx(), and jid_set().

#define NS_ADMIN   "jabber:iq:admin"
 

Definition at line 185 of file libjabber_types.h.

#define NS_AGENT   "jabber:iq:agent"
 

Definition at line 175 of file libjabber_types.h.

Referenced by jab_on_state_handler(), and process_iq_result().

#define NS_AGENTS   "jabber:iq:agents"
 

Definition at line 176 of file libjabber_types.h.

Referenced by jab_on_state_handler(), and process_iq_result().

#define NS_AUTH   "jabber:iq:auth"
 

Definition at line 171 of file libjabber_types.h.

Referenced by jab_auth(), and process_iq_result().

#define NS_AUTH_0K   "jabber:iq:auth:0k"
 

Definition at line 187 of file libjabber_types.h.

#define NS_BROWSE   "jabber:iq:browse"
 

Definition at line 188 of file libjabber_types.h.

#define NS_CLIENT   "jabber:client"
 

Definition at line 169 of file libjabber_types.h.

Referenced by jab_start().

#define NS_CONFERENCE   "jabber:iq:conference"
 

Definition at line 190 of file libjabber_types.h.

#define NS_DATA   "jabber:x:data"
 

Definition at line 200 of file libjabber_types.h.

Referenced by JFormHandler().

#define NS_DELAY   "jabber:x:delay"
 

Definition at line 177 of file libjabber_types.h.

Referenced by jabutil_delay().

#define NS_ENCRYPTED   "jabber:x:encrypted"
 

Definition at line 192 of file libjabber_types.h.

Referenced by jab_on_packet_handler(), and jabutil_msgnew().

#define NS_ENVELOPE   "jabber:x:envelope"
 

Definition at line 195 of file libjabber_types.h.

#define NS_EVENT   "jabber:x:event"
 

Definition at line 189 of file libjabber_types.h.

Referenced by decode_notice(), jabutil_msgnew(), and jabutil_pingnew().

#define NS_EXPIRE   "jabber:x:expire"
 

Definition at line 196 of file libjabber_types.h.

#define NS_FILTER   "jabber:iq:filter"
 

Definition at line 186 of file libjabber_types.h.

#define NS_GATEWAY   "jabber:iq:gateway"
 

Definition at line 193 of file libjabber_types.h.

#define NS_LAST   "jabber:iq:last"
 

Definition at line 194 of file libjabber_types.h.

#define NS_OFFLINE   "jabber:x:offline"
 

Definition at line 174 of file libjabber_types.h.

#define NS_OOB   "jabber:iq:oob"
 

Definition at line 183 of file libjabber_types.h.

#define NS_PRIVATE   "jabber:iq:private"
 

Definition at line 181 of file libjabber_types.h.

#define NS_REGISTER   "jabber:iq:register"
 

Definition at line 172 of file libjabber_types.h.

Referenced by jab_reg(), and jwg_on_event_handler().

#define NS_ROSTER   "jabber:iq:roster"
 

Definition at line 173 of file libjabber_types.h.

Referenced by jab_on_state_handler(), jwg_on_event_handler(), process_iq_result(), and process_iq_set().

#define NS_SEARCH   "jabber:iq:search"
 

Definition at line 182 of file libjabber_types.h.

Referenced by jwg_on_event_handler().

#define NS_SERVER   "jabber:server"
 

Definition at line 170 of file libjabber_types.h.

#define NS_SIGNED   "jabber:x:signed"
 

Definition at line 191 of file libjabber_types.h.

Referenced by jabutil_presnew(), and process_presence().

#define NS_TIME   "jabber:iq:time"
 

Definition at line 179 of file libjabber_types.h.

#define NS_VCARD   "vcard-temp"
 

Definition at line 180 of file libjabber_types.h.

#define NS_VERSION   "jabber:iq:version"
 

Definition at line 178 of file libjabber_types.h.

Referenced by process_iq_result().

#define NS_XDBGINSERT   "jabber:xdb:ginsert"
 

Definition at line 198 of file libjabber_types.h.

#define NS_XDBNSLIST   "jabber:xdb:nslist"
 

Definition at line 199 of file libjabber_types.h.

#define NS_XHTML   "http://www.w3.org/1999/xhtml"
 

Definition at line 197 of file libjabber_types.h.

#define NS_XOOB   "jabber:x:oob"
 

Definition at line 184 of file libjabber_types.h.

#define NSCHECK x,
 )     (j_strcmp(xmlnode_get_attrib(x,"xmlns"),n) == 0)
 

Definition at line 167 of file libjabber_types.h.

#define TERROR_AUTH   (terror){401,"Unauthorized"}
 

Definition at line 150 of file libjabber_types.h.

#define TERROR_BAD   (terror){400,"Bad Request"}
 

Definition at line 149 of file libjabber_types.h.

#define TERROR_CONFLICT   (terror){409,"Conflict"}
 

Definition at line 158 of file libjabber_types.h.

#define TERROR_DISCONNECTED   (terror){510,"Disconnected"}
 

Definition at line 164 of file libjabber_types.h.

#define TERROR_EXTERNAL   (terror){502,"Remote Server Error"}
 

Definition at line 161 of file libjabber_types.h.

#define TERROR_EXTTIMEOUT   (terror){504,"Remote Server Timeout"}
 

Definition at line 163 of file libjabber_types.h.

#define TERROR_FORBIDDEN   (terror){403,"Forbidden"}
 

Definition at line 152 of file libjabber_types.h.

#define TERROR_INTERNAL   (terror){500,"Internal Server Error"}
 

Definition at line 159 of file libjabber_types.h.

#define TERROR_NOTACCEPTABLE   (terror){406,"Not Acceptable"}
 

Definition at line 155 of file libjabber_types.h.

#define TERROR_NOTALLOWED   (terror){405,"Not Allowed"}
 

Definition at line 154 of file libjabber_types.h.

#define TERROR_NOTFOUND   (terror){404,"Not Found"}
 

Definition at line 153 of file libjabber_types.h.

#define TERROR_NOTIMPL   (terror){501,"Not Implemented"}
 

Definition at line 160 of file libjabber_types.h.

#define TERROR_PAY   (terror){402,"Payment Required"}
 

Definition at line 151 of file libjabber_types.h.

#define TERROR_REGISTER   (terror){407,"Registration Required"}
 

Definition at line 156 of file libjabber_types.h.

#define TERROR_REQTIMEOUT   (terror){408,"Request Timeout"}
 

Definition at line 157 of file libjabber_types.h.

#define TERROR_UNAVAIL   (terror){503,"Service Unavailable"}
 

Definition at line 162 of file libjabber_types.h.

#define TMSG_CHAT   "chat"
 

Definition at line 205 of file libjabber_types.h.

#define TMSG_ERROR   "error"
 

Definition at line 204 of file libjabber_types.h.

#define TMSG_GROUPCHAT   "groupchat"
 

Definition at line 206 of file libjabber_types.h.

#define TMSG_HEADLINE   "headline"
 

Definition at line 207 of file libjabber_types.h.

#define TMSG_NORMAL   "normal"
 

Definition at line 203 of file libjabber_types.h.


Typedef Documentation

typedef struct jabpacket_struct _jabpacket
 

Referenced by jabpacket_new(), and jabpacket_reset().

typedef struct jabconn_struct * jabconn
 

Referenced by jab_auth(), jab_delete(), jab_getfd(), jab_getid(), jab_getjid(), jab_getsid(), jab_new(), jab_on_packet_handler(), jab_on_state_handler(), jab_packet_handler(), jab_poll(), jab_recv(), jab_reg(), jab_send(), jab_send_raw(), jab_start(), jab_startup(), jab_state_handler(), jab_stop(), process_iq_error(), process_iq_get(), process_iq_result(), process_iq_set(), and process_presence().

typedef void(* jabconn_packet_h)(jabconn j, jabpacket p)
 

Definition at line 133 of file libjabber_types.h.

typedef void(* jabconn_state_h)(jabconn j, int state)
 

Definition at line 132 of file libjabber_types.h.

typedef struct jabconn_struct jabconn_struct
 

typedef struct jabpacket_struct * jabpacket
 

Referenced by contact_status_change(), jab_on_packet_handler(), jabpacket_new(), jabpacket_reset(), jabpacket_subtype(), process_iq_error(), process_iq_get(), process_iq_result(), process_iq_set(), and process_presence().

typedef struct jid_struct * jid
 

Referenced by decode_notice(), find_match(), find_nickname_from_jid(), insert_into_agent_list(), jid_append(), jid_cmp(), jid_cmpx(), jid_full(), jid_new(), jid_nodescan(), jid_safe(), jid_set(), jid_user(), jid_xres(), jlocate_grouped_on_event_handler(), jlocate_standard_on_event_handler(), jstat_on_event_handler(), jwg_on_event_handler(), process_iq_result(), process_iq_set(), process_presence(), and update_contact_status().

typedef struct terror_struct terror
 

Referenced by jabutil_error().



Last updated at Tue Dec 18 21:07:42 PST 2007. This site and project hosted by...SourceForge.net Logo

Source Perspective by Fisheye