Skip to content

Commit

Permalink
feat: add 'hash' method to entry
Browse files Browse the repository at this point in the history
needed to match the return values of doc set/get
  • Loading branch information
b5 committed Aug 29, 2023
1 parent 8ba6e33 commit 3d4a24a
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 107 deletions.
39 changes: 33 additions & 6 deletions Iroh.xcframework/ios-arm64/Iroh.framework/Headers/irohFFI.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,33 @@ void*_Nonnull uniffi_iroh_fn_method_doc_share_read(void*_Nonnull ptr, RustCallSt
);
void*_Nonnull uniffi_iroh_fn_method_doc_set_bytes(void*_Nonnull ptr, void*_Nonnull author, RustBuffer key, RustBuffer value, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull entry, RustCallStatus *_Nonnull out_status
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull hash, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_latest(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_subscribe(void*_Nonnull ptr, uint64_t cb, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_stop_sync(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_status(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_authorid(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_authorid_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_signedentry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_entry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_entry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_entry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_signedentry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void*_Nonnull uniffi_iroh_fn_method_entry_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_signedentry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_bytes(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_docticket(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
Expand Down Expand Up @@ -166,14 +178,29 @@ uint16_t uniffi_iroh_checksum_method_doc_latest(void
);
uint16_t uniffi_iroh_checksum_method_doc_subscribe(void

);
uint16_t uniffi_iroh_checksum_method_doc_stop_sync(void

);
uint16_t uniffi_iroh_checksum_method_doc_status(void

);
uint16_t uniffi_iroh_checksum_method_authorid_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_author(void
uint16_t uniffi_iroh_checksum_method_entry_author(void

);
uint16_t uniffi_iroh_checksum_method_entry_key(void

);
uint16_t uniffi_iroh_checksum_method_entry_hash(void

);
uint16_t uniffi_iroh_checksum_method_hash_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_key(void
uint16_t uniffi_iroh_checksum_method_hash_to_bytes(void

);
uint16_t uniffi_iroh_checksum_method_docticket_to_string(void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,33 @@ void*_Nonnull uniffi_iroh_fn_method_doc_share_read(void*_Nonnull ptr, RustCallSt
);
void*_Nonnull uniffi_iroh_fn_method_doc_set_bytes(void*_Nonnull ptr, void*_Nonnull author, RustBuffer key, RustBuffer value, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull entry, RustCallStatus *_Nonnull out_status
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull hash, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_latest(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_subscribe(void*_Nonnull ptr, uint64_t cb, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_stop_sync(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_status(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_authorid(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_authorid_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_signedentry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_entry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_entry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_entry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_signedentry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void*_Nonnull uniffi_iroh_fn_method_entry_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_signedentry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_bytes(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_docticket(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
Expand Down Expand Up @@ -166,14 +178,29 @@ uint16_t uniffi_iroh_checksum_method_doc_latest(void
);
uint16_t uniffi_iroh_checksum_method_doc_subscribe(void

);
uint16_t uniffi_iroh_checksum_method_doc_stop_sync(void

);
uint16_t uniffi_iroh_checksum_method_doc_status(void

);
uint16_t uniffi_iroh_checksum_method_authorid_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_author(void
uint16_t uniffi_iroh_checksum_method_entry_author(void

);
uint16_t uniffi_iroh_checksum_method_entry_key(void

);
uint16_t uniffi_iroh_checksum_method_entry_hash(void

);
uint16_t uniffi_iroh_checksum_method_hash_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_key(void
uint16_t uniffi_iroh_checksum_method_hash_to_bytes(void

);
uint16_t uniffi_iroh_checksum_method_docticket_to_string(void
Expand Down
Loading

0 comments on commit 3d4a24a

Please sign in to comment.