From fc9d4a99a1488a6313f661258e455fb8f443a4d1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Nov 2019 22:33:58 +0100 Subject: implement sync_api_download --- src/include/sync_service.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'src/include') 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); /** -- cgit v1.2.3