aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_file.h')
-rw-r--r--src/gnunet_chat_file.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gnunet_chat_file.h b/src/gnunet_chat_file.h
index 9669bf2..e4f4e12 100644
--- a/src/gnunet_chat_file.h
+++ b/src/gnunet_chat_file.h
@@ -43,6 +43,12 @@ struct GNUNET_CHAT_File
43 struct GNUNET_HashCode hash; 43 struct GNUNET_HashCode hash;
44 struct GNUNET_CRYPTO_SymmetricSessionKey key; 44 struct GNUNET_CRYPTO_SymmetricSessionKey key;
45 45
46 uint64_t published;
47 uint64_t downloaded;
48 uint64_t unindexed;
49
50 struct GNUNET_CONTAINER_MetaData *meta;
51
46 struct GNUNET_FS_Uri* uri; 52 struct GNUNET_FS_Uri* uri;
47 struct GNUNET_FS_DownloadContext* download; 53 struct GNUNET_FS_DownloadContext* download;
48 struct GNUNET_FS_PublishContext* publish; 54 struct GNUNET_FS_PublishContext* publish;
@@ -53,6 +59,11 @@ struct GNUNET_CHAT_File*
53file_create_from_message (struct GNUNET_CHAT_Handle *handle, 59file_create_from_message (struct GNUNET_CHAT_Handle *handle,
54 const struct GNUNET_MESSENGER_MessageFile* message); 60 const struct GNUNET_MESSENGER_MessageFile* message);
55 61
62struct GNUNET_CHAT_File*
63file_create_from_disk (struct GNUNET_CHAT_Handle *handle,
64 const char *name, const struct GNUNET_HashCode *hash,
65 const struct GNUNET_CRYPTO_SymmetricSessionKey *key);
66
56void 67void
57file_destroy (struct GNUNET_CHAT_File* file); 68file_destroy (struct GNUNET_CHAT_File* file);
58 69