diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-24 22:58:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-24 22:58:04 +0100 |
commit | 50fdeaaaf49f43f5625d5a3aca4692b4661bc613 (patch) | |
tree | a23405de101e4ccf2d5434c321c8705ce1df169f /src/include | |
parent | fc9d4a99a1488a6313f661258e455fb8f443a4d1 (diff) | |
download | sync-50fdeaaaf49f43f5625d5a3aca4692b4661bc613.tar.gz sync-50fdeaaaf49f43f5625d5a3aca4692b4661bc613.tar.bz2 sync-50fdeaaaf49f43f5625d5a3aca4692b4661bc613.zip |
upload api skeleton
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/sync_service.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/include/sync_service.h b/src/include/sync_service.h index e0651f2..bb67481 100644 --- a/src/include/sync_service.h +++ b/src/include/sync_service.h @@ -232,6 +232,8 @@ struct SYNC_UploadOperation; * @param priv private key of an account with the server * @param prev_backup_hash hash of the previous backup, NULL for the first upload ever * @param backup_size number of bytes in @a backup + * @param backup the encrypted backup, must remain in + * memory until we are done with the operation! * @param payment_requested #GNUNET_YES if the client wants to pay more for the account now * @param paid_order_id order ID of a recent payment made, or NULL for none * @param cb function to call with the result @@ -262,17 +264,34 @@ void SYNC_upload_cancel (struct SYNC_UploadOperation *uo); +/** + * Detailed results from the successful download. + */ struct SYNC_DownloadDetails { - + /** + * Signature (already verified). + */ struct SYNC_AccountSignatureP sig; + /** + * Hash of the previous version. + */ struct GNUNET_HashCode prev_backup_hash; + /** + * Hash over @e backup and @e backup_size. + */ struct GNUNET_HashCode curr_backup_hash; + /** + * The backup we downloaded. + */ const void *backup; + /** + * Number of bytes in @e backup. + */ size_t backup_size; }; |