equal
deleted
inserted
replaced
13 |
13 |
14 typedef enum { |
14 typedef enum { |
15 JINGLE_FT_INCOMING, |
15 JINGLE_FT_INCOMING, |
16 JINGLE_FT_OUTGOING |
16 JINGLE_FT_OUTGOING |
17 } JingleFTDirection; |
17 } JingleFTDirection; |
|
18 |
|
19 typedef enum { |
|
20 JINGLE_FT_PENDING, |
|
21 JINGLE_FT_STARTING, |
|
22 JINGLE_FT_ENDING, |
|
23 JINGLE_FT_REJECT, |
|
24 JINGLE_FT_ERROR |
|
25 } JingleFTState; |
|
26 |
18 typedef struct { |
27 typedef struct { |
19 /* the last modification of the file, optional */ |
28 /* the last modification of the file, optional */ |
20 time_t date; |
29 time_t date; |
21 |
30 |
22 /* MD5 hash of the file, optional */ |
31 /* MD5 hash of the file, optional */ |
38 JingleFTType type; |
47 JingleFTType type; |
39 |
48 |
40 /* Is it if the file is incoming or outgoing */ |
49 /* Is it if the file is incoming or outgoing */ |
41 JingleFTDirection dir; |
50 JingleFTDirection dir; |
42 |
51 |
|
52 /* The state of the file (PENDING, STARTING, ...) */ |
|
53 JingleFTState state; |
|
54 |
43 /* A little description of the transfer */ |
55 /* A little description of the transfer */ |
44 gchar *desc; |
56 gchar *desc; |
45 |
57 |
46 /* Where we compute the hash */ |
58 /* Where we compute the hash */ |
47 GChecksum *md5; |
59 GChecksum *md5; |