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

libjwgc_types.h File Reference

#include "libxode.h"

Go to the source code of this file.

Data Structures

struct  NAMED
struct  HASH_TABLE
struct  HASH_TABLE_ITER
struct  j_SHA_CTX
struct  jwgpacket_struct
struct  jwgconn_struct

Defines

#define _LIBJWGC_TYPES_H_   1
#define AGENT_NONE   0x0000
#define AGENT_SEARCH   0x0001
#define AGENT_REGISTER   0x0010
#define AGENT_GROUPCHAT   0x0100
#define AGENT_TRANSPORT   0x1000
#define JFORM_INSTRUCTIONS   "instructions"
#define JFORM_TITLE   "title"
#define JFORM_FIELD   "field"
#define JFORM_FIELD_TEXT_SINGLE   "text-single"
#define JFORM_FIELD_TEXT_PRIVATE   "text-private"
#define JFORM_FIELD_TEXT_MULTI   "text-multi"
#define JFORM_FIELD_LIST_SINGLE   "list-single"
#define JFORM_FIELD_LIST_MULTI   "list-multi"
#define JFORM_FIELD_BOOLEAN   "boolean"
#define JFORM_FIELD_FIXED   "fixed"
#define JFORM_FIELD_HIDDEN   "hidden"
#define JFORM_FIELD_JID_SINGLE   "jid-single"
#define JFORM_FIELD_JID_MULTI   "jid-multi"
#define MAXHOSTNAMELEN   64
#define NETSOCKET_SERVER   0
#define NETSOCKET_CLIENT   1
#define NETSOCKET_UDP   2
#define DEFVARS   "jwgc.vars"
#define USRVARS   ".jwgc.vars"
#define FIXEDVARS   "jwgc.vars.fixed"
#define JWGPACKET_UNKNOWN   0
#define JWGPACKET_MESSAGE   1
#define JWGPACKET_LOCATE   2
#define JWGPACKET_STATUS   3
#define JWGPACKET_SHUTDOWN   4
#define JWGPACKET_CHECK   5
#define JWGPACKET_REREAD   6
#define JWGPACKET_SHOWVAR   7
#define JWGPACKET_SUBSCRIBE   8
#define JWGPACKET_UNSUBSCRIBE   9
#define JWGPACKET_NICKNAME   10
#define JWGPACKET_GROUP   11
#define JWGPACKET_REGISTER   12
#define JWGPACKET_SETVAR   13
#define JWGPACKET_JOIN   14
#define JWGPACKET_LEAVE   15
#define JWGPACKET_DEBUG   16
#define JWGPACKET_SEARCH   17
#define JWGPACKET_PING   18
#define JWGCONN_STATE_OFF   0
#define JWGCONN_STATE_CONNECTED   1
#define JWGCONN_STATE_ON   2
#define JWGCONN_STATE_AUTH   3

Typedefs

typedef const char * KEY
typedef enum jVar_name jVar
typedef enum jVar_type jVarType
typedef jwgpacket_structjwgpacket
typedef jwgpacket_struct _jwgpacket
typedef jwgconn_structjwgconn
typedef jwgconn_struct jwgconn_struct
typedef void(* jwgconn_packet_h )(jwgconn j, jwgpacket p)

Enumerations

enum  jVar_name {
  jVarUsername, jVarPassword, jVarServer, jVarResource,
  jVarPort, jVarPriority, jVarInitProgs, jVarJID,
  jVarPresence, jNumVars
}
enum  jVar_type { jTypeString, jTypeNumber, jTypeBool, jNumTypes }


Define Documentation

#define _LIBJWGC_TYPES_H_   1
 

Definition at line 4 of file libjwgc_types.h.

#define AGENT_GROUPCHAT   0x0100
 

Definition at line 16 of file libjwgc_types.h.

#define AGENT_NONE   0x0000
 

Definition at line 13 of file libjwgc_types.h.

#define AGENT_REGISTER   0x0010
 

Definition at line 15 of file libjwgc_types.h.

#define AGENT_SEARCH   0x0001
 

Definition at line 14 of file libjwgc_types.h.

#define AGENT_TRANSPORT   0x1000
 

Definition at line 17 of file libjwgc_types.h.

#define DEFVARS   "jwgc.vars"
 

Definition at line 107 of file libjwgc_types.h.

Referenced by jVars_init().

#define FIXEDVARS   "jwgc.vars.fixed"
 

Definition at line 115 of file libjwgc_types.h.

Referenced by jVars_init().

#define JFORM_FIELD   "field"
 

Definition at line 27 of file libjwgc_types.h.

Referenced by display_form(), and process_form_choice().

#define JFORM_FIELD_BOOLEAN   "boolean"
 

Definition at line 34 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_FIXED   "fixed"
 

Definition at line 35 of file libjwgc_types.h.

Referenced by display_field().

#define JFORM_FIELD_HIDDEN   "hidden"
 

Definition at line 36 of file libjwgc_types.h.

Referenced by display_field().

#define JFORM_FIELD_JID_MULTI   "jid-multi"
 

Definition at line 38 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_JID_SINGLE   "jid-single"
 

Definition at line 37 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_LIST_MULTI   "list-multi"
 

Definition at line 33 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_LIST_SINGLE   "list-single"
 

Definition at line 32 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_TEXT_MULTI   "text-multi"
 

Definition at line 31 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_TEXT_PRIVATE   "text-private"
 

Definition at line 30 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_FIELD_TEXT_SINGLE   "text-single"
 

Definition at line 29 of file libjwgc_types.h.

Referenced by display_field(), and edit_form_entry().

#define JFORM_INSTRUCTIONS   "instructions"
 

Definition at line 25 of file libjwgc_types.h.

Referenced by display_form(), and process_nonform_choice().

#define JFORM_TITLE   "title"
 

Definition at line 26 of file libjwgc_types.h.

Referenced by display_form(), and process_nonform_choice().

#define JWGCONN_STATE_AUTH   3
 

Definition at line 181 of file libjwgc_types.h.

#define JWGCONN_STATE_CONNECTED   1
 

Definition at line 179 of file libjwgc_types.h.

#define JWGCONN_STATE_OFF   0
 

Definition at line 178 of file libjwgc_types.h.

#define JWGCONN_STATE_ON   2
 

Definition at line 180 of file libjwgc_types.h.

#define JWGPACKET_CHECK   5
 

Definition at line 163 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_DEBUG   16
 

Definition at line 174 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_GROUP   11
 

Definition at line 169 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_JOIN   14
 

Definition at line 172 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_LEAVE   15
 

Definition at line 173 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_LOCATE   2
 

Definition at line 160 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_MESSAGE   1
 

Definition at line 159 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_NICKNAME   10
 

Definition at line 168 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_PING   18
 

Definition at line 176 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_REGISTER   12
 

Definition at line 170 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_REREAD   6
 

Definition at line 164 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_SEARCH   17
 

Definition at line 175 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_SETVAR   13
 

Definition at line 171 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_SHOWVAR   7
 

Definition at line 165 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_SHUTDOWN   4
 

Definition at line 162 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_STATUS   3
 

Definition at line 161 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_SUBSCRIBE   8
 

Definition at line 166 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define JWGPACKET_UNKNOWN   0
 

Definition at line 158 of file libjwgc_types.h.

#define JWGPACKET_UNSUBSCRIBE   9
 

Definition at line 167 of file libjwgc_types.h.

Referenced by jwg_on_event_handler().

#define MAXHOSTNAMELEN   64
 

Definition at line 79 of file libjwgc_types.h.

Referenced by make_addr().

#define NETSOCKET_CLIENT   1
 

Definition at line 83 of file libjwgc_types.h.

Referenced by jab_start().

#define NETSOCKET_SERVER   0
 

Definition at line 82 of file libjwgc_types.h.

#define NETSOCKET_UDP   2
 

Definition at line 84 of file libjwgc_types.h.

#define USRVARS   ".jwgc.vars"
 

Definition at line 111 of file libjwgc_types.h.

Referenced by jVars_init().


Typedef Documentation

typedef struct jwgpacket_struct _jwgpacket
 

Referenced by jwgpacket_new(), and jwgpacket_reset().

typedef enum jVar_name jVar
 

Referenced by jVars_init(), jVars_read_conf(), and jVars_stoi().

typedef enum jVar_type jVarType
 

typedef struct jwgconn_struct * jwgconn
 

Referenced by check_live_jwgc(), check_live_jwgc_on_event_handler(), jctl_do_sendrecv(), jctl_on_event_handler(), jlocate_grouped_on_event_handler(), jlocate_standard_on_event_handler(), jstat_on_event_handler(), jwg_cleanup(), jwg_delete(), jwg_event_handler(), jwg_getfd(), jwg_new(), jwg_on_event_handler(), jwg_poll(), jwg_recv(), jwg_reset(), jwg_send(), jwg_send_raw(), jwg_server(), jwg_serverror(), jwg_servpoll(), jwg_servrecv(), jwg_servsend(), jwg_servsend_raw(), jwg_servstart(), jwg_servsuccess(), jwg_start(), jwg_stop(), jwrite_on_event_handler(), jwrite_ping_on_event_handler(), list_contacts(), list_contacts_bygroup(), and main().

typedef void(* jwgconn_packet_h)(jwgconn j, jwgpacket p)
 

Definition at line 198 of file libjwgc_types.h.

typedef struct jwgconn_struct jwgconn_struct
 

typedef struct jwgpacket_struct * jwgpacket
 

Referenced by check_live_jwgc_on_event_handler(), jctl_on_event_handler(), jlocate_grouped_on_event_handler(), jlocate_standard_on_event_handler(), jstat_on_event_handler(), jwg_on_event_handler(), jwgpacket_new(), jwgpacket_reset(), jwrite_on_event_handler(), and jwrite_ping_on_event_handler().

typedef const char* KEY
 

Definition at line 53 of file libjwgc_types.h.


Enumeration Type Documentation

enum jVar_name
 

Enumeration values:
jVarUsername 
jVarPassword 
jVarServer 
jVarResource 
jVarPort 
jVarPriority 
jVarInitProgs 
jVarJID 
jVarPresence 
jNumVars 

Definition at line 118 of file libjwgc_types.h.

00118                        {
00119         jVarUsername,
00120         jVarPassword,
00121         jVarServer,
00122         jVarResource,
00123         jVarPort,
00124         jVarPriority,
00125 #ifdef USE_SSL
00126         jVarUseSSL,
00127 #endif /* USE_SSL */
00128         jVarInitProgs,
00129         jVarJID,
00130         jVarPresence,
00131 #ifdef USE_GPGME
00132         jVarUseGPG,
00133         jVarGPGPass,
00134         jVarGPGKeyID,
00135 #endif /* USE_GPGME */
00136         jNumVars
00137 } jVar;

enum jVar_type
 

Enumeration values:
jTypeString 
jTypeNumber 
jTypeBool 
jNumTypes 

Definition at line 139 of file libjwgc_types.h.

00139                        {
00140         jTypeString,
00141         jTypeNumber,
00142         jTypeBool,
00143         jNumTypes
00144 } jVarType;



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

Source Perspective by Fisheye