-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathaliaslog.h
37 lines (33 loc) · 867 Bytes
/
aliaslog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// alias structure
typedef struct ALIAS
{
char name[24];
char command[160];
} ALIAS;
typedef struct SHOWLOG
{
SOCKET sock;
char chan[128];
char filter[LOGLINE];
int threadnum;
BOOL notice;
BOOL silent;
BOOL gotinfo;
} SHOWLOG;
int addalias(char *name, char *command);
void aliaslist(SOCKET sock, char *chan, BOOL notice);
void addlog(char *desc);
void addlogv(char *desc, ...);
void showlog(SOCKET sock, char *chan, BOOL notice, BOOL silent, char *filter);
void clearlog(SOCKET sock, char *chan, BOOL notice, BOOL silent);
BOOL searchlog(char *filter);
DWORD WINAPI ShowLogThread(LPVOID param);
#ifdef DEBUG_LOGGING
void opendebuglog(void);
void debuglog(char *buffer,BOOL crlf=TRUE);
void closedebuglog(void);
#endif
#ifdef DEBUG_CONSOLE
BOOL WINAPI HandlerRoutine(DWORD dwCtrlType);
void OpenConsole(void);
#endif