Update hublib ios
This commit is contained in:
@@ -0,0 +1,562 @@
|
|||||||
|
// This file was autogenerated by some hot garbage in the `uniffi` crate.
|
||||||
|
// Trust me, you don't want to mess with it!
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
// The following structs are used to implement the lowest level
|
||||||
|
// of the FFI, and thus useful to multiple uniffied crates.
|
||||||
|
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
|
||||||
|
#ifdef UNIFFI_SHARED_H
|
||||||
|
// We also try to prevent mixing versions of shared uniffi header structs.
|
||||||
|
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
|
||||||
|
#ifndef UNIFFI_SHARED_HEADER_V4
|
||||||
|
#error Combining helper code from multiple versions of uniffi is not supported
|
||||||
|
#endif // ndef UNIFFI_SHARED_HEADER_V4
|
||||||
|
#else
|
||||||
|
#define UNIFFI_SHARED_H
|
||||||
|
#define UNIFFI_SHARED_HEADER_V4
|
||||||
|
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
||||||
|
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
||||||
|
|
||||||
|
typedef struct RustBuffer
|
||||||
|
{
|
||||||
|
uint64_t capacity;
|
||||||
|
uint64_t len;
|
||||||
|
uint8_t *_Nullable data;
|
||||||
|
} RustBuffer;
|
||||||
|
|
||||||
|
typedef struct ForeignBytes
|
||||||
|
{
|
||||||
|
int32_t len;
|
||||||
|
const uint8_t *_Nullable data;
|
||||||
|
} ForeignBytes;
|
||||||
|
|
||||||
|
// Error definitions
|
||||||
|
typedef struct RustCallStatus {
|
||||||
|
int8_t code;
|
||||||
|
RustBuffer errorBuf;
|
||||||
|
} RustCallStatus;
|
||||||
|
|
||||||
|
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
||||||
|
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
||||||
|
#endif // def UNIFFI_SHARED_H
|
||||||
|
#ifndef UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
|
||||||
|
#define UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
|
||||||
|
typedef void (*UniffiRustFutureContinuationCallback)(uint64_t, int8_t
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
|
||||||
|
typedef void (*UniffiForeignFutureFree)(uint64_t
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
|
||||||
|
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
|
||||||
|
typedef void (*UniffiCallbackInterfaceFree)(uint64_t
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE
|
||||||
|
typedef struct UniffiForeignFuture {
|
||||||
|
uint64_t handle;
|
||||||
|
UniffiForeignFutureFree _Nonnull free;
|
||||||
|
} UniffiForeignFuture;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
|
||||||
|
typedef struct UniffiForeignFutureStructU8 {
|
||||||
|
uint8_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU8;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU8)(uint64_t, UniffiForeignFutureStructU8
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
|
||||||
|
typedef struct UniffiForeignFutureStructI8 {
|
||||||
|
int8_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI8;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI8)(uint64_t, UniffiForeignFutureStructI8
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
|
||||||
|
typedef struct UniffiForeignFutureStructU16 {
|
||||||
|
uint16_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU16;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU16)(uint64_t, UniffiForeignFutureStructU16
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
|
||||||
|
typedef struct UniffiForeignFutureStructI16 {
|
||||||
|
int16_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI16;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI16)(uint64_t, UniffiForeignFutureStructI16
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
|
||||||
|
typedef struct UniffiForeignFutureStructU32 {
|
||||||
|
uint32_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU32;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU32)(uint64_t, UniffiForeignFutureStructU32
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
|
||||||
|
typedef struct UniffiForeignFutureStructI32 {
|
||||||
|
int32_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI32;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI32)(uint64_t, UniffiForeignFutureStructI32
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
|
||||||
|
typedef struct UniffiForeignFutureStructU64 {
|
||||||
|
uint64_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU64;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU64)(uint64_t, UniffiForeignFutureStructU64
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
|
||||||
|
typedef struct UniffiForeignFutureStructI64 {
|
||||||
|
int64_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI64;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI64)(uint64_t, UniffiForeignFutureStructI64
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
|
||||||
|
typedef struct UniffiForeignFutureStructF32 {
|
||||||
|
float returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructF32;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
|
||||||
|
typedef void (*UniffiForeignFutureCompleteF32)(uint64_t, UniffiForeignFutureStructF32
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
|
||||||
|
typedef struct UniffiForeignFutureStructF64 {
|
||||||
|
double returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructF64;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
|
||||||
|
typedef void (*UniffiForeignFutureCompleteF64)(uint64_t, UniffiForeignFutureStructF64
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
|
||||||
|
typedef struct UniffiForeignFutureStructPointer {
|
||||||
|
void*_Nonnull returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructPointer;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
|
||||||
|
typedef void (*UniffiForeignFutureCompletePointer)(uint64_t, UniffiForeignFutureStructPointer
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
|
||||||
|
typedef struct UniffiForeignFutureStructRustBuffer {
|
||||||
|
RustBuffer returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructRustBuffer;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
typedef void (*UniffiForeignFutureCompleteRustBuffer)(uint64_t, UniffiForeignFutureStructRustBuffer
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
|
||||||
|
typedef struct UniffiForeignFutureStructVoid {
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructVoid;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
|
||||||
|
typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_GET_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_GET_SECRET_VALUE
|
||||||
|
RustBuffer uniffi_hublib_fn_func_get_secret_value(RustBuffer http_time, RustBuffer user_agent, RustBuffer url, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
RustBuffer uniffi_hublib_fn_func_recreate_secret_value(RustBuffer http_date, RustBuffer user_agent, RustBuffer url, RustBuffer gotten_value, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_ALLOC
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_ALLOC
|
||||||
|
RustBuffer ffi_hublib_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FROM_BYTES
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FROM_BYTES
|
||||||
|
RustBuffer ffi_hublib_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FREE
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FREE
|
||||||
|
void ffi_hublib_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_RESERVE
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_RESERVE
|
||||||
|
RustBuffer ffi_hublib_rustbuffer_reserve(RustBuffer buf, uint64_t additional, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U8
|
||||||
|
void ffi_hublib_rust_future_poll_u8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U8
|
||||||
|
void ffi_hublib_rust_future_cancel_u8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U8
|
||||||
|
void ffi_hublib_rust_future_free_u8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U8
|
||||||
|
uint8_t ffi_hublib_rust_future_complete_u8(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I8
|
||||||
|
void ffi_hublib_rust_future_poll_i8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I8
|
||||||
|
void ffi_hublib_rust_future_cancel_i8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I8
|
||||||
|
void ffi_hublib_rust_future_free_i8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I8
|
||||||
|
int8_t ffi_hublib_rust_future_complete_i8(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U16
|
||||||
|
void ffi_hublib_rust_future_poll_u16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U16
|
||||||
|
void ffi_hublib_rust_future_cancel_u16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U16
|
||||||
|
void ffi_hublib_rust_future_free_u16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U16
|
||||||
|
uint16_t ffi_hublib_rust_future_complete_u16(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I16
|
||||||
|
void ffi_hublib_rust_future_poll_i16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I16
|
||||||
|
void ffi_hublib_rust_future_cancel_i16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I16
|
||||||
|
void ffi_hublib_rust_future_free_i16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I16
|
||||||
|
int16_t ffi_hublib_rust_future_complete_i16(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U32
|
||||||
|
void ffi_hublib_rust_future_poll_u32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U32
|
||||||
|
void ffi_hublib_rust_future_cancel_u32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U32
|
||||||
|
void ffi_hublib_rust_future_free_u32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U32
|
||||||
|
uint32_t ffi_hublib_rust_future_complete_u32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I32
|
||||||
|
void ffi_hublib_rust_future_poll_i32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I32
|
||||||
|
void ffi_hublib_rust_future_cancel_i32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I32
|
||||||
|
void ffi_hublib_rust_future_free_i32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I32
|
||||||
|
int32_t ffi_hublib_rust_future_complete_i32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U64
|
||||||
|
void ffi_hublib_rust_future_poll_u64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U64
|
||||||
|
void ffi_hublib_rust_future_cancel_u64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U64
|
||||||
|
void ffi_hublib_rust_future_free_u64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U64
|
||||||
|
uint64_t ffi_hublib_rust_future_complete_u64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I64
|
||||||
|
void ffi_hublib_rust_future_poll_i64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I64
|
||||||
|
void ffi_hublib_rust_future_cancel_i64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I64
|
||||||
|
void ffi_hublib_rust_future_free_i64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I64
|
||||||
|
int64_t ffi_hublib_rust_future_complete_i64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F32
|
||||||
|
void ffi_hublib_rust_future_poll_f32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F32
|
||||||
|
void ffi_hublib_rust_future_cancel_f32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F32
|
||||||
|
void ffi_hublib_rust_future_free_f32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F32
|
||||||
|
float ffi_hublib_rust_future_complete_f32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F64
|
||||||
|
void ffi_hublib_rust_future_poll_f64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F64
|
||||||
|
void ffi_hublib_rust_future_cancel_f64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F64
|
||||||
|
void ffi_hublib_rust_future_free_f64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F64
|
||||||
|
double ffi_hublib_rust_future_complete_f64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_POINTER
|
||||||
|
void ffi_hublib_rust_future_poll_pointer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_POINTER
|
||||||
|
void ffi_hublib_rust_future_cancel_pointer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_POINTER
|
||||||
|
void ffi_hublib_rust_future_free_pointer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_POINTER
|
||||||
|
void*_Nonnull ffi_hublib_rust_future_complete_pointer(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_RUST_BUFFER
|
||||||
|
void ffi_hublib_rust_future_poll_rust_buffer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_RUST_BUFFER
|
||||||
|
void ffi_hublib_rust_future_cancel_rust_buffer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_RUST_BUFFER
|
||||||
|
void ffi_hublib_rust_future_free_rust_buffer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
RustBuffer ffi_hublib_rust_future_complete_rust_buffer(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_VOID
|
||||||
|
void ffi_hublib_rust_future_poll_void(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_VOID
|
||||||
|
void ffi_hublib_rust_future_cancel_void(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_VOID
|
||||||
|
void ffi_hublib_rust_future_free_void(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_VOID
|
||||||
|
void ffi_hublib_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_GET_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_GET_SECRET_VALUE
|
||||||
|
uint16_t uniffi_hublib_checksum_func_get_secret_value(void
|
||||||
|
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
uint16_t uniffi_hublib_checksum_func_recreate_secret_value(void
|
||||||
|
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_UNIFFI_CONTRACT_VERSION
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_UNIFFI_CONTRACT_VERSION
|
||||||
|
uint32_t ffi_hublib_uniffi_contract_version(void
|
||||||
|
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
module hublibFFI {
|
||||||
|
header "hublibFFI.h"
|
||||||
|
export *
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -0,0 +1,562 @@
|
|||||||
|
// This file was autogenerated by some hot garbage in the `uniffi` crate.
|
||||||
|
// Trust me, you don't want to mess with it!
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
// The following structs are used to implement the lowest level
|
||||||
|
// of the FFI, and thus useful to multiple uniffied crates.
|
||||||
|
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
|
||||||
|
#ifdef UNIFFI_SHARED_H
|
||||||
|
// We also try to prevent mixing versions of shared uniffi header structs.
|
||||||
|
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
|
||||||
|
#ifndef UNIFFI_SHARED_HEADER_V4
|
||||||
|
#error Combining helper code from multiple versions of uniffi is not supported
|
||||||
|
#endif // ndef UNIFFI_SHARED_HEADER_V4
|
||||||
|
#else
|
||||||
|
#define UNIFFI_SHARED_H
|
||||||
|
#define UNIFFI_SHARED_HEADER_V4
|
||||||
|
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
||||||
|
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
||||||
|
|
||||||
|
typedef struct RustBuffer
|
||||||
|
{
|
||||||
|
uint64_t capacity;
|
||||||
|
uint64_t len;
|
||||||
|
uint8_t *_Nullable data;
|
||||||
|
} RustBuffer;
|
||||||
|
|
||||||
|
typedef struct ForeignBytes
|
||||||
|
{
|
||||||
|
int32_t len;
|
||||||
|
const uint8_t *_Nullable data;
|
||||||
|
} ForeignBytes;
|
||||||
|
|
||||||
|
// Error definitions
|
||||||
|
typedef struct RustCallStatus {
|
||||||
|
int8_t code;
|
||||||
|
RustBuffer errorBuf;
|
||||||
|
} RustCallStatus;
|
||||||
|
|
||||||
|
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
||||||
|
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
||||||
|
#endif // def UNIFFI_SHARED_H
|
||||||
|
#ifndef UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
|
||||||
|
#define UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
|
||||||
|
typedef void (*UniffiRustFutureContinuationCallback)(uint64_t, int8_t
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
|
||||||
|
typedef void (*UniffiForeignFutureFree)(uint64_t
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
|
||||||
|
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
|
||||||
|
typedef void (*UniffiCallbackInterfaceFree)(uint64_t
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE
|
||||||
|
typedef struct UniffiForeignFuture {
|
||||||
|
uint64_t handle;
|
||||||
|
UniffiForeignFutureFree _Nonnull free;
|
||||||
|
} UniffiForeignFuture;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
|
||||||
|
typedef struct UniffiForeignFutureStructU8 {
|
||||||
|
uint8_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU8;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU8)(uint64_t, UniffiForeignFutureStructU8
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
|
||||||
|
typedef struct UniffiForeignFutureStructI8 {
|
||||||
|
int8_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI8;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI8)(uint64_t, UniffiForeignFutureStructI8
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
|
||||||
|
typedef struct UniffiForeignFutureStructU16 {
|
||||||
|
uint16_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU16;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU16)(uint64_t, UniffiForeignFutureStructU16
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
|
||||||
|
typedef struct UniffiForeignFutureStructI16 {
|
||||||
|
int16_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI16;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI16)(uint64_t, UniffiForeignFutureStructI16
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
|
||||||
|
typedef struct UniffiForeignFutureStructU32 {
|
||||||
|
uint32_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU32;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU32)(uint64_t, UniffiForeignFutureStructU32
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
|
||||||
|
typedef struct UniffiForeignFutureStructI32 {
|
||||||
|
int32_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI32;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI32)(uint64_t, UniffiForeignFutureStructI32
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
|
||||||
|
typedef struct UniffiForeignFutureStructU64 {
|
||||||
|
uint64_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructU64;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
|
||||||
|
typedef void (*UniffiForeignFutureCompleteU64)(uint64_t, UniffiForeignFutureStructU64
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
|
||||||
|
typedef struct UniffiForeignFutureStructI64 {
|
||||||
|
int64_t returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructI64;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
|
||||||
|
typedef void (*UniffiForeignFutureCompleteI64)(uint64_t, UniffiForeignFutureStructI64
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
|
||||||
|
typedef struct UniffiForeignFutureStructF32 {
|
||||||
|
float returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructF32;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
|
||||||
|
typedef void (*UniffiForeignFutureCompleteF32)(uint64_t, UniffiForeignFutureStructF32
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
|
||||||
|
typedef struct UniffiForeignFutureStructF64 {
|
||||||
|
double returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructF64;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
|
||||||
|
typedef void (*UniffiForeignFutureCompleteF64)(uint64_t, UniffiForeignFutureStructF64
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
|
||||||
|
typedef struct UniffiForeignFutureStructPointer {
|
||||||
|
void*_Nonnull returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructPointer;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
|
||||||
|
typedef void (*UniffiForeignFutureCompletePointer)(uint64_t, UniffiForeignFutureStructPointer
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
|
||||||
|
typedef struct UniffiForeignFutureStructRustBuffer {
|
||||||
|
RustBuffer returnValue;
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructRustBuffer;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
typedef void (*UniffiForeignFutureCompleteRustBuffer)(uint64_t, UniffiForeignFutureStructRustBuffer
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
|
||||||
|
typedef struct UniffiForeignFutureStructVoid {
|
||||||
|
RustCallStatus callStatus;
|
||||||
|
} UniffiForeignFutureStructVoid;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
|
||||||
|
typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_GET_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_GET_SECRET_VALUE
|
||||||
|
RustBuffer uniffi_hublib_fn_func_get_secret_value(RustBuffer http_time, RustBuffer user_agent, RustBuffer url, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_FN_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
RustBuffer uniffi_hublib_fn_func_recreate_secret_value(RustBuffer http_date, RustBuffer user_agent, RustBuffer url, RustBuffer gotten_value, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_ALLOC
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_ALLOC
|
||||||
|
RustBuffer ffi_hublib_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FROM_BYTES
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FROM_BYTES
|
||||||
|
RustBuffer ffi_hublib_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FREE
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_FREE
|
||||||
|
void ffi_hublib_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_RESERVE
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUSTBUFFER_RESERVE
|
||||||
|
RustBuffer ffi_hublib_rustbuffer_reserve(RustBuffer buf, uint64_t additional, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U8
|
||||||
|
void ffi_hublib_rust_future_poll_u8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U8
|
||||||
|
void ffi_hublib_rust_future_cancel_u8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U8
|
||||||
|
void ffi_hublib_rust_future_free_u8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U8
|
||||||
|
uint8_t ffi_hublib_rust_future_complete_u8(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I8
|
||||||
|
void ffi_hublib_rust_future_poll_i8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I8
|
||||||
|
void ffi_hublib_rust_future_cancel_i8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I8
|
||||||
|
void ffi_hublib_rust_future_free_i8(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I8
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I8
|
||||||
|
int8_t ffi_hublib_rust_future_complete_i8(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U16
|
||||||
|
void ffi_hublib_rust_future_poll_u16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U16
|
||||||
|
void ffi_hublib_rust_future_cancel_u16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U16
|
||||||
|
void ffi_hublib_rust_future_free_u16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U16
|
||||||
|
uint16_t ffi_hublib_rust_future_complete_u16(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I16
|
||||||
|
void ffi_hublib_rust_future_poll_i16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I16
|
||||||
|
void ffi_hublib_rust_future_cancel_i16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I16
|
||||||
|
void ffi_hublib_rust_future_free_i16(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I16
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I16
|
||||||
|
int16_t ffi_hublib_rust_future_complete_i16(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U32
|
||||||
|
void ffi_hublib_rust_future_poll_u32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U32
|
||||||
|
void ffi_hublib_rust_future_cancel_u32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U32
|
||||||
|
void ffi_hublib_rust_future_free_u32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U32
|
||||||
|
uint32_t ffi_hublib_rust_future_complete_u32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I32
|
||||||
|
void ffi_hublib_rust_future_poll_i32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I32
|
||||||
|
void ffi_hublib_rust_future_cancel_i32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I32
|
||||||
|
void ffi_hublib_rust_future_free_i32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I32
|
||||||
|
int32_t ffi_hublib_rust_future_complete_i32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_U64
|
||||||
|
void ffi_hublib_rust_future_poll_u64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_U64
|
||||||
|
void ffi_hublib_rust_future_cancel_u64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_U64
|
||||||
|
void ffi_hublib_rust_future_free_u64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_U64
|
||||||
|
uint64_t ffi_hublib_rust_future_complete_u64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_I64
|
||||||
|
void ffi_hublib_rust_future_poll_i64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_I64
|
||||||
|
void ffi_hublib_rust_future_cancel_i64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_I64
|
||||||
|
void ffi_hublib_rust_future_free_i64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_I64
|
||||||
|
int64_t ffi_hublib_rust_future_complete_i64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F32
|
||||||
|
void ffi_hublib_rust_future_poll_f32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F32
|
||||||
|
void ffi_hublib_rust_future_cancel_f32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F32
|
||||||
|
void ffi_hublib_rust_future_free_f32(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F32
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F32
|
||||||
|
float ffi_hublib_rust_future_complete_f32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_F64
|
||||||
|
void ffi_hublib_rust_future_poll_f64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_F64
|
||||||
|
void ffi_hublib_rust_future_cancel_f64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_F64
|
||||||
|
void ffi_hublib_rust_future_free_f64(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F64
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_F64
|
||||||
|
double ffi_hublib_rust_future_complete_f64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_POINTER
|
||||||
|
void ffi_hublib_rust_future_poll_pointer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_POINTER
|
||||||
|
void ffi_hublib_rust_future_cancel_pointer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_POINTER
|
||||||
|
void ffi_hublib_rust_future_free_pointer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_POINTER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_POINTER
|
||||||
|
void*_Nonnull ffi_hublib_rust_future_complete_pointer(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_RUST_BUFFER
|
||||||
|
void ffi_hublib_rust_future_poll_rust_buffer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_RUST_BUFFER
|
||||||
|
void ffi_hublib_rust_future_cancel_rust_buffer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_RUST_BUFFER
|
||||||
|
void ffi_hublib_rust_future_free_rust_buffer(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_RUST_BUFFER
|
||||||
|
RustBuffer ffi_hublib_rust_future_complete_rust_buffer(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_POLL_VOID
|
||||||
|
void ffi_hublib_rust_future_poll_void(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_CANCEL_VOID
|
||||||
|
void ffi_hublib_rust_future_cancel_void(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_FREE_VOID
|
||||||
|
void ffi_hublib_rust_future_free_void(uint64_t handle
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_VOID
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_RUST_FUTURE_COMPLETE_VOID
|
||||||
|
void ffi_hublib_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_GET_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_GET_SECRET_VALUE
|
||||||
|
uint16_t uniffi_hublib_checksum_func_get_secret_value(void
|
||||||
|
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
#define UNIFFI_FFIDEF_UNIFFI_HUBLIB_CHECKSUM_FUNC_RECREATE_SECRET_VALUE
|
||||||
|
uint16_t uniffi_hublib_checksum_func_recreate_secret_value(void
|
||||||
|
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#ifndef UNIFFI_FFIDEF_FFI_HUBLIB_UNIFFI_CONTRACT_VERSION
|
||||||
|
#define UNIFFI_FFIDEF_FFI_HUBLIB_UNIFFI_CONTRACT_VERSION
|
||||||
|
uint32_t ffi_hublib_uniffi_contract_version(void
|
||||||
|
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
module hublibFFI {
|
||||||
|
header "hublibFFI.h"
|
||||||
|
export *
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -170,10 +170,16 @@ fileprivate protocol FfiConverter {
|
|||||||
fileprivate protocol FfiConverterPrimitive: FfiConverter where FfiType == SwiftType { }
|
fileprivate protocol FfiConverterPrimitive: FfiConverter where FfiType == SwiftType { }
|
||||||
|
|
||||||
extension FfiConverterPrimitive {
|
extension FfiConverterPrimitive {
|
||||||
|
#if swift(>=5.8)
|
||||||
|
@_documentation(visibility: private)
|
||||||
|
#endif
|
||||||
public static func lift(_ value: FfiType) throws -> SwiftType {
|
public static func lift(_ value: FfiType) throws -> SwiftType {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if swift(>=5.8)
|
||||||
|
@_documentation(visibility: private)
|
||||||
|
#endif
|
||||||
public static func lower(_ value: SwiftType) -> FfiType {
|
public static func lower(_ value: SwiftType) -> FfiType {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
@@ -184,6 +190,9 @@ extension FfiConverterPrimitive {
|
|||||||
fileprivate protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {}
|
fileprivate protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {}
|
||||||
|
|
||||||
extension FfiConverterRustBuffer {
|
extension FfiConverterRustBuffer {
|
||||||
|
#if swift(>=5.8)
|
||||||
|
@_documentation(visibility: private)
|
||||||
|
#endif
|
||||||
public static func lift(_ buf: RustBuffer) throws -> SwiftType {
|
public static func lift(_ buf: RustBuffer) throws -> SwiftType {
|
||||||
var reader = createReader(data: Data(rustBuffer: buf))
|
var reader = createReader(data: Data(rustBuffer: buf))
|
||||||
let value = try read(from: &reader)
|
let value = try read(from: &reader)
|
||||||
@@ -194,6 +203,9 @@ extension FfiConverterRustBuffer {
|
|||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if swift(>=5.8)
|
||||||
|
@_documentation(visibility: private)
|
||||||
|
#endif
|
||||||
public static func lower(_ value: SwiftType) -> RustBuffer {
|
public static func lower(_ value: SwiftType) -> RustBuffer {
|
||||||
var writer = createWriter()
|
var writer = createWriter()
|
||||||
write(value, into: &writer)
|
write(value, into: &writer)
|
||||||
@@ -269,7 +281,7 @@ private func makeRustCall<T, E: Swift.Error>(
|
|||||||
_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
|
_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
|
||||||
errorHandler: ((RustBuffer) throws -> E)?
|
errorHandler: ((RustBuffer) throws -> E)?
|
||||||
) throws -> T {
|
) throws -> T {
|
||||||
uniffiEnsureInitialized()
|
uniffiEnsureHublibInitialized()
|
||||||
var callStatus = RustCallStatus.init()
|
var callStatus = RustCallStatus.init()
|
||||||
let returnedVal = callback(&callStatus)
|
let returnedVal = callback(&callStatus)
|
||||||
try uniffiCheckCallStatus(callStatus: callStatus, errorHandler: errorHandler)
|
try uniffiCheckCallStatus(callStatus: callStatus, errorHandler: errorHandler)
|
||||||
@@ -340,9 +352,10 @@ private func uniffiTraitInterfaceCallWithError<T, E>(
|
|||||||
callStatus.pointee.errorBuf = FfiConverterString.lower(String(describing: error))
|
callStatus.pointee.errorBuf = FfiConverterString.lower(String(describing: error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fileprivate class UniffiHandleMap<T> {
|
fileprivate final class UniffiHandleMap<T>: @unchecked Sendable {
|
||||||
private var map: [UInt64: T] = [:]
|
// All mutation happens with this lock held, which is why we implement @unchecked Sendable.
|
||||||
private let lock = NSLock()
|
private let lock = NSLock()
|
||||||
|
private var map: [UInt64: T] = [:]
|
||||||
private var currentHandle: UInt64 = 1
|
private var currentHandle: UInt64 = 1
|
||||||
|
|
||||||
func insert(obj: T) -> UInt64 {
|
func insert(obj: T) -> UInt64 {
|
||||||
@@ -384,6 +397,9 @@ fileprivate class UniffiHandleMap<T> {
|
|||||||
// Public interface members begin here.
|
// Public interface members begin here.
|
||||||
|
|
||||||
|
|
||||||
|
#if swift(>=5.8)
|
||||||
|
@_documentation(visibility: private)
|
||||||
|
#endif
|
||||||
fileprivate struct FfiConverterString: FfiConverter {
|
fileprivate struct FfiConverterString: FfiConverter {
|
||||||
typealias SwiftType = String
|
typealias SwiftType = String
|
||||||
typealias FfiType = RustBuffer
|
typealias FfiType = RustBuffer
|
||||||
@@ -448,9 +464,9 @@ private enum InitializationResult {
|
|||||||
}
|
}
|
||||||
// Use a global variable to perform the versioning checks. Swift ensures that
|
// Use a global variable to perform the versioning checks. Swift ensures that
|
||||||
// the code inside is only computed once.
|
// the code inside is only computed once.
|
||||||
private var initializationResult: InitializationResult = {
|
private let initializationResult: InitializationResult = {
|
||||||
// Get the bindings contract version from our ComponentInterface
|
// Get the bindings contract version from our ComponentInterface
|
||||||
let bindings_contract_version = 26
|
let bindings_contract_version = 29
|
||||||
// Get the scaffolding contract version by calling the into the dylib
|
// Get the scaffolding contract version by calling the into the dylib
|
||||||
let scaffolding_contract_version = ffi_hublib_uniffi_contract_version()
|
let scaffolding_contract_version = ffi_hublib_uniffi_contract_version()
|
||||||
if bindings_contract_version != scaffolding_contract_version {
|
if bindings_contract_version != scaffolding_contract_version {
|
||||||
@@ -466,7 +482,9 @@ private var initializationResult: InitializationResult = {
|
|||||||
return InitializationResult.ok
|
return InitializationResult.ok
|
||||||
}()
|
}()
|
||||||
|
|
||||||
private func uniffiEnsureInitialized() {
|
// Make the ensure init function public so that other modules which have external type references to
|
||||||
|
// our types can call it.
|
||||||
|
public func uniffiEnsureHublibInitialized() {
|
||||||
switch initializationResult {
|
switch initializationResult {
|
||||||
case .ok:
|
case .ok:
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user