equal
deleted
inserted
replaced
9 typedef enum { |
9 typedef enum { |
10 JINGLE_FT_OFFER, |
10 JINGLE_FT_OFFER, |
11 JINGLE_FT_REQUEST, |
11 JINGLE_FT_REQUEST, |
12 } JingleFTType; |
12 } JingleFTType; |
13 |
13 |
|
14 typedef enum { |
|
15 JINGLE_FT_INCOMING, |
|
16 JINGLE_FT_OUTGOING |
|
17 } JingleFTDirection; |
14 typedef struct { |
18 typedef struct { |
15 /* the last modification of the file, optional */ |
19 /* the last modification of the file, optional */ |
16 time_t date; |
20 time_t date; |
17 |
21 |
18 /* MD5 hash of the file, optional */ |
22 /* MD5 hash of the file, optional */ |
31 GIOChannel *outfile; |
35 GIOChannel *outfile; |
32 |
36 |
33 /* Is it an offer or a request ? */ |
37 /* Is it an offer or a request ? */ |
34 JingleFTType type; |
38 JingleFTType type; |
35 |
39 |
|
40 /* Is it if the file is incoming or outgoing */ |
|
41 JingleFTDirection dir; |
|
42 |
36 /* A little description of the transfer */ |
43 /* A little description of the transfer */ |
37 gchar *desc; |
44 gchar *desc; |
38 |
45 |
39 /* Where we compute the hash */ |
46 /* Where we compute the hash */ |
40 GChecksum *md5; |
47 GChecksum *md5; |
41 |
48 |
42 } JingleFT; |
49 } JingleFT; |
43 |
50 |
|
51 typedef struct { |
|
52 int index; |
|
53 |
|
54 JingleFT *jft; |
|
55 } JingleFTInfo; |
44 #endif |
56 #endif |