summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-get.h
blob: f103b2aeba11cdaa7e90955b7c5867e62c9df989 (plain)
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
#ifndef __DCC_GET_H
#define __DCC_GET_H

#include "dcc.h"

enum {
	DCC_GET_DEFAULT,

	DCC_GET_RENAME,
	DCC_GET_OVERWRITE,
	DCC_GET_RESUME
};

typedef void (*DCC_GET_FUNC) (DCC_REC *);

/* handle receiving DCC - GET/RESUME. */
void cmd_dcc_receive(const char *data, DCC_GET_FUNC accept);

void dcc_get_connect(DCC_REC *dcc);
char *dcc_get_download_path(const char *fname);

#define dcc_is_waiting_get(dcc) \
        ((dcc)->type == DCC_TYPE_GET && dcc_is_waiting_user(dcc))

void dcc_get_init(void);
void dcc_get_deinit(void);

#endif