Merge pull request #687 from Mikah89/clear_dcc_list_rebased

Clear button in dcc download manager
This commit is contained in:
TingPing
2013-07-27 13:19:29 -07:00
3 changed files with 84 additions and 0 deletions

View File

@@ -227,6 +227,15 @@ is_dcc (struct DCC *dcc)
return FALSE;
}
gboolean
is_dcc_completed (struct DCC *dcc)
{
if (dcc != NULL)
return (dcc->dccstat == STAT_FAILED || dcc->dccstat == STAT_DONE || dcc->dccstat == STAT_ABORTED);
return FALSE;
}
/* this is called from hexchat.c:hexchat_misc_checks() every 1 second. */
void

View File

@@ -117,6 +117,7 @@ struct dccstat_info
extern struct dccstat_info dccstat[];
gboolean is_dcc (struct DCC *dcc);
gboolean is_dcc_completed (struct DCC *dcc);
void dcc_abort (session *sess, struct DCC *dcc);
void dcc_get (struct DCC *dcc);
int dcc_resume (struct DCC *dcc);