diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-24 22:33:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-24 22:33:58 +0100 |
commit | fc9d4a99a1488a6313f661258e455fb8f443a4d1 (patch) | |
tree | 7799035f2098de9968f078c4d67aa891231b12d9 /src/include | |
parent | c4b5ac29367dd1d845c19851504784bdbdbc1fd5 (diff) | |
download | sync-fc9d4a99a1488a6313f661258e455fb8f443a4d1.tar.gz sync-fc9d4a99a1488a6313f661258e455fb8f443a4d1.tar.bz2 sync-fc9d4a99a1488a6313f661258e455fb8f443a4d1.zip |
implement sync_api_download
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/sync_service.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/include/sync_service.h b/src/include/sync_service.h index 47dfdb4..e0651f2 100644 --- a/src/include/sync_service.h +++ b/src/include/sync_service.h @@ -262,6 +262,21 @@ void SYNC_upload_cancel (struct SYNC_UploadOperation *uo); +struct SYNC_DownloadDetails +{ + + struct SYNC_AccountSignatureP sig; + + struct GNUNET_HashCode prev_backup_hash; + + struct GNUNET_HashCode curr_backup_hash; + + const void *backup; + + size_t backup_size; + +}; + /** * Function called with the results of a #SYNC_download(). * @@ -278,11 +293,8 @@ SYNC_upload_cancel (struct SYNC_UploadOperation *uo); */ typedef void (*SYNC_DownloadCallback)(void *cls, - const struct SYNC_AccountPublicKeyP *sig, - const struct GNUNET_HashCode *prev_backup_hash, - const struct GNUNET_HashCode *curr_backup_hash, - size_t backup_size, - const void *backup); + unsigned int http_status, + const struct SYNC_DownloadDetails *dd); /** |