Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitchX
GitHub Repository: BitchX/BitchX1.3
Path: blob/master/dll/aim/aim.h
1072 views
1
#ifndef _AIM_H
2
#define _AIM_H
3
4
#define AIM_VERSION "0.02"
5
#define AIM_DEBUG_LOG "/tmp/aim-bx.log"
6
7
/* Twice the actual length, we should never have problems */
8
#define MAX_STATUS_MSG_LEN 4096
9
#define cparse convert_output_format
10
11
/* Macro Fun */
12
#define CHECK_TOC_ONLINE() if ( state != STATE_ONLINE ) { statusprintf("Please connect to aim first (/asignon)"); return; }
13
#define VALID_ARG(x) !(!x || ! *x || ! strcasecmp(x,""))
14
#define REQUIRED_ARG(x,y,z) if ( ! VALID_ARG(x) ) { userage(y,z); return; }
15
16
17
/* cmd.c */
18
19
void asignon(IrcCommandDll *intp, char *command, char *args, char *subargs,char *helparg);
20
void asignoff(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
21
void amsg(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
22
void abl(IrcCommandDll *intp, char *command, char *args, char *subargs,char *helparg);
23
void apd(IrcCommandDll *intp, char *command, char *args, char *subargs,char *helparg);
24
void awarn(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
25
void apermdeny(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
26
void aspermdeny(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
27
void aarpermitdeny(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
28
void awhois(IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
29
void asave (IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
30
void achat (IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
31
void adir (IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
32
void aaway (IrcCommandDll *intp, char *command, char *args, char *subargs, char *helparg);
33
void aquery(IrcCommandDll *intp, char *command, char *args, char *subargs,char *helparg);
34
void ainfo(IrcCommandDll *intp, char *command, char *args, char *subargs,char *helparg);
35
void achange_idle(Window *w, char *s, int i);
36
37
extern char current_chat[512];
38
extern char away_message[2048];
39
extern LL msgdus;
40
extern LL msgdthem;
41
42
43
/* toc.c */
44
void bx_init_toc();
45
int toc_add_input_stream(int fd,int (*func)(int));
46
int toc_remove_input_stream(int fd) ;
47
int toc_main_interface(int type, char **args);
48
int toc_timer(int type, char **args);
49
50
extern void (*chatprintf)(char *, ...);
51
52
53
/* aim.c */
54
#ifdef BITCHX_PATCH
55
char * amsg_complete_func(int, char *, int *, char **);
56
char * get_next_buddy_complete();
57
int do_aim_tabkey_overwrite(int x, char *p, int *c, char **s);
58
char * aim_tabkey_overwrite(int x, char *p, int *c, char **s);
59
#endif
60
void update_aim_window(Window *tmp);
61
int build_aim_status(Window *tmp);
62
void toggle_aimwin_hide (Window *win, char *unused, int onoff);
63
void toggle_aimwin (Window *win, char *unused, int onoff);
64
int Aim_Cleanup(IrcCommandDll **interp, Function_ptr *global_table);
65
int Aim_Init(IrcCommandDll **interp, Function_ptr *global_table);
66
char *Aim_Version(IrcCommandDll *intp);
67
68
extern char *name;
69
extern char *timer_id;
70
#ifdef BITCHX_PATCH
71
struct tab_key_struct {
72
int list;
73
int pos;
74
int subpos;
75
};
76
extern struct tab_key_struct tks;
77
#endif
78
79
80
/* util.c */
81
82
void statusprintf(char *fmt, ...);
83
void statusput(int log_type, char *buf);
84
void msgprintf(char *fmt, ...);
85
void debug_printf(char *fmt, ...);
86
char *rm_space(char *s);
87
88
#endif /* _AIM_H */
89
90