Export dcc_chat_socketread() and dcc_send_socketread() callbacks to modules

The idea here is that if you have a module which implements a new DCC type that is essentially
a lightly-modified version of CHAT or SEND you can reuse these functions.
This commit is contained in:
Kevin Easton
2017-12-20 17:36:05 +11:00
parent a55feeef5f
commit d7688075b6
6 changed files with 15 additions and 7 deletions

View File

@@ -620,6 +620,8 @@ static int already_done = 0;
global_table[GET_ACTIVE_COUNT] = (Function_ptr) BX_get_active_count;
global_table[DCC_FILESEND] = (Function_ptr) BX_dcc_filesend;
global_table[DCC_RESEND] = (Function_ptr) BX_dcc_resend;
global_table[DCC_CHAT_SOCKETREAD] = (Function_ptr) BX_dcc_chat_socketread;
global_table[DCC_SEND_SOCKETREAD] = (Function_ptr) BX_dcc_send_socketread;
/* cdcc.c */
global_table[GET_NUM_QUEUE] = (Function_ptr) BX_get_num_queue;