boltffi_bindgen 0.2.0

Code generation library for BoltFFI - generates Swift, Kotlin, and TypeScript bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
typedef struct {{ vtable_type }} {
    void (*free)(uint64_t handle);
    uint64_t (*clone)(uint64_t handle);
{%- for method in methods %}
    void (*{{ method.field_name }})({{ method.params }});
{%- endfor %}
} {{ vtable_type }};

void {{ register_fn }}(const struct {{ vtable_type }} *vtable);
BoltFFICallbackHandle {{ create_fn }}(uint64_t handle);