1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

Added size/skipped to Dcc::Send / Get records

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1588 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-29 20:41:35 +00:00 committed by cras
parent 84e8d9acfa
commit f0ccd539df
2 changed files with 11 additions and 2 deletions

View File

@ -53,10 +53,18 @@ static void perl_dcc_chat_fill_hash(HV *hv, CHAT_DCC_REC *dcc)
hv_store(hv, "connection_lost", 15, newSViv(dcc->connection_lost), 0);
}
static void perl_dcc_get_fill_hash(HV *hv, GET_DCC_REC *dcc)
static void perl_dcc_file_fill_hash(HV *hv, FILE_DCC_REC *dcc)
{
perl_dcc_fill_hash(hv, (DCC_REC *) dcc);
hv_store(hv, "size", 4, newSViv(dcc->size), 0);
hv_store(hv, "skipped", 7, newSViv(dcc->skipped), 0);
}
static void perl_dcc_get_fill_hash(HV *hv, GET_DCC_REC *dcc)
{
perl_dcc_file_fill_hash(hv, (FILE_DCC_REC *) dcc);
hv_store(hv, "get_type", 8, newSViv(dcc->get_type), 0);
hv_store(hv, "file", 4, new_pv(dcc->file), 0);
hv_store(hv, "file_quoted", 11, newSViv(dcc->file_quoted), 0);
@ -64,7 +72,7 @@ static void perl_dcc_get_fill_hash(HV *hv, GET_DCC_REC *dcc)
static void perl_dcc_send_fill_hash(HV *hv, SEND_DCC_REC *dcc)
{
perl_dcc_fill_hash(hv, (DCC_REC *) dcc);
perl_dcc_file_fill_hash(hv, (FILE_DCC_REC *) dcc);
hv_store(hv, "file_quoted", 11, newSViv(dcc->file_quoted), 0);
hv_store(hv, "waitforend", 10, newSViv(dcc->waitforend), 0);

View File

@ -12,6 +12,7 @@
#include "netsplit.h"
#include "dcc/dcc.h"
#include "dcc/dcc-file.h"
#include "dcc/dcc-chat.h"
#include "dcc/dcc-get.h"
#include "dcc/dcc-send.h"