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

main.h

Go to the documentation of this file.
00001 #ifndef _MAIN_H_
00002 #define _MAIN_H_
00003 
00004 #include <sysdep.h>
00005 #include <libjabber.h>
00006 #include <libjwgc.h>
00007 
00008 
00009 /* Global variables */
00010 extern struct _Node *program;
00011 extern char *progname;
00012 extern int jab_reauth;
00013 extern jabconn jab_c;
00014 extern jwgconn jwg_c;
00015 extern time_t jab_connect_time;
00016 
00017 
00018 /* Global defines */
00019 #ifndef USRDESC
00020 #define USRDESC ".jwgc.desc"
00021 #endif
00022 
00023 #ifndef DEFDESC
00024 #define DEFDESC "jwgc.desc"
00025 #endif
00026 
00027 #ifndef DEFSERVER
00028 #define DEFSERVER "jabber.org"
00029 #endif
00030 
00031 #ifndef DEFPORT
00032 #define DEFPORT "5222"
00033 #endif
00034 
00035 #ifndef DEFSSLPORT
00036 #define DEFSSLPORT "5223"
00037 #endif
00038 
00039 #ifndef DEFRESOURCE
00040 #define DEFRESOURCE "jwgc"
00041 #endif
00042 
00043 #ifndef DEFPRESENCE
00044 #define DEFPRESENCE "available"
00045 #endif
00046 
00047 #ifndef DEFPRIORITY
00048 #define DEFPRIORITY "0"
00049 #endif
00050 
00051 #ifndef DEFUSESSL
00052 #define DEFUSESSL "false"
00053 #endif
00054 
00055 #ifndef DEFUSEGPG
00056 #define DEFUSEGPG "false"
00057 #endif
00058 
00059 #ifndef MACHINE_TYPE
00060 #define MACHINE_TYPE "unknown"
00061 #endif
00062 
00063 
00064 /* jabber_handler.c */
00065 void jab_on_packet_handler(jabconn conn, jabpacket packet);
00066 void jab_on_state_handler(jabconn conn, int state);
00067 
00068 
00069 /* jwgc_handler.c */
00070 void jwg_on_event_handler(jwgconn conn, jwgpacket packet);
00071 
00072 
00073 /* jwgc_variables.c */
00074 void jwg_set_defaults_handler();
00075 
00076 
00077 /* main.c */
00078 void usage();
00079 int read_in_description_file();
00080 
00081 
00082 /* notice.c */
00083 char *decode_notice(struct jabpacket_struct *notice);
00084 
00085 
00086 /* parser.y */
00087 struct _Node *parse_file(FILE *input_file);
00088 struct _Node *parse_buffer(char *input_buffer);
00089 
00090 
00091 /* status.c */
00092 void show_status();
00093 
00094 
00095 /* variables.c */
00096 void var_clear_all_variables();
00097 
00098 #endif /* _MAIN_H_ */


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