Add full prototyped declarations for DCC hook function pointers
This commit is contained in:
21
source/dcc.c
21
source/dcc.c
@@ -76,16 +76,17 @@ HashEntry dcc_no_flood[DCC_HASHSIZE];
|
|||||||
|
|
||||||
struct _dcc_types_
|
struct _dcc_types_
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
char *module;
|
char *module;
|
||||||
int type;
|
int type;
|
||||||
int (*init_func)();
|
int (*init_func)(const char *, const char *, const char *, const char *, const char *, const char *, unsigned long, unsigned short);
|
||||||
int (*open_func)();
|
int (*open_func)(int, int, unsigned long, unsigned short);
|
||||||
int (*input)();
|
int (*input)(int, int, char *, int, int);
|
||||||
int (*output)();
|
int (*output)(int, int, char *, int);
|
||||||
int (*close_func)();
|
int (*close_func)(int, unsigned long, unsigned short);
|
||||||
|
};
|
||||||
} _dcc_types[] =
|
|
||||||
|
struct _dcc_types_ _dcc_types[] =
|
||||||
{
|
{
|
||||||
{"<none>", NULL, 0, NULL, NULL, NULL, NULL, NULL},
|
{"<none>", NULL, 0, NULL, NULL, NULL, NULL, NULL},
|
||||||
{"CHAT", NULL, DCC_CHAT, NULL, NULL, NULL, NULL, NULL},
|
{"CHAT", NULL, DCC_CHAT, NULL, NULL, NULL, NULL, NULL},
|
||||||
|
|||||||
Reference in New Issue
Block a user