diff options
Diffstat (limited to 'src/gnunet_chat_file.h')
-rw-r--r-- | src/gnunet_chat_file.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gnunet_chat_file.h b/src/gnunet_chat_file.h index ae45def..9669bf2 100644 --- a/src/gnunet_chat_file.h +++ b/src/gnunet_chat_file.h | |||
@@ -26,15 +26,34 @@ | |||
26 | #define GNUNET_CHAT_FILE_H_ | 26 | #define GNUNET_CHAT_FILE_H_ |
27 | 27 | ||
28 | #include <gnunet/platform.h> | 28 | #include <gnunet/platform.h> |
29 | #include <gnunet/gnunet_common.h> | ||
30 | #include <gnunet/gnunet_crypto_lib.h> | ||
29 | #include <gnunet/gnunet_fs_service.h> | 31 | #include <gnunet/gnunet_fs_service.h> |
30 | #include <gnunet/gnunet_messenger_service.h> | 32 | #include <gnunet/gnunet_messenger_service.h> |
31 | #include <gnunet/gnunet_util_lib.h> | 33 | #include <gnunet/gnunet_util_lib.h> |
32 | 34 | ||
35 | struct GNUNET_CHAT_Handle; | ||
36 | |||
33 | struct GNUNET_CHAT_File | 37 | struct GNUNET_CHAT_File |
34 | { | 38 | { |
39 | struct GNUNET_CHAT_Handle *handle; | ||
40 | |||
41 | char *name; | ||
42 | |||
35 | struct GNUNET_HashCode hash; | 43 | struct GNUNET_HashCode hash; |
44 | struct GNUNET_CRYPTO_SymmetricSessionKey key; | ||
45 | |||
36 | struct GNUNET_FS_Uri* uri; | 46 | struct GNUNET_FS_Uri* uri; |
37 | struct GNUNET_FS_DownloadContext* context; | 47 | struct GNUNET_FS_DownloadContext* download; |
48 | struct GNUNET_FS_PublishContext* publish; | ||
49 | struct GNUNET_FS_UnindexContext* unindex; | ||
38 | }; | 50 | }; |
39 | 51 | ||
52 | struct GNUNET_CHAT_File* | ||
53 | file_create_from_message (struct GNUNET_CHAT_Handle *handle, | ||
54 | const struct GNUNET_MESSENGER_MessageFile* message); | ||
55 | |||
56 | void | ||
57 | file_destroy (struct GNUNET_CHAT_File* file); | ||
58 | |||
40 | #endif /* GNUNET_CHAT_FILE_H_ */ | 59 | #endif /* GNUNET_CHAT_FILE_H_ */ |