diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-07-12 00:21:25 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-07-12 00:21:25 +0200 |
commit | d1a6ac474d731b74ea1b191a76471b698687a278 (patch) | |
tree | 342dd1a4d260f02185f11cfb1931bce030cd5b5d /src/gnunet_chat_file.h | |
parent | b880617514f9e64e991cb8d6fcff74ce3f292e36 (diff) | |
download | libgnunetchat-d1a6ac474d731b74ea1b191a76471b698687a278.tar.gz libgnunetchat-d1a6ac474d731b74ea1b191a76471b698687a278.zip |
Most of the file handling and necessary disk io calls
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_file.h')
-rw-r--r-- | src/gnunet_chat_file.h | 11 |
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* | |||
53 | file_create_from_message (struct GNUNET_CHAT_Handle *handle, | 59 | file_create_from_message (struct GNUNET_CHAT_Handle *handle, |
54 | const struct GNUNET_MESSENGER_MessageFile* message); | 60 | const struct GNUNET_MESSENGER_MessageFile* message); |
55 | 61 | ||
62 | struct GNUNET_CHAT_File* | ||
63 | file_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 | |||
56 | void | 67 | void |
57 | file_destroy (struct GNUNET_CHAT_File* file); | 68 | file_destroy (struct GNUNET_CHAT_File* file); |
58 | 69 | ||