Event listener abi (#50)

This commit is contained in:
Ivan FB
2026-05-28 16:00:28 +02:00
committed by GitHub
parent 496a341466
commit 3f19411684
7 changed files with 148 additions and 63 deletions
+2 -1
View File
@@ -332,7 +332,8 @@ void* echo_create(const uint8_t* req_cbor, size_t req_cbor_len, FFICallback call
int echo_shout(void* ctx, FFICallback callback, void* user_data, const uint8_t* req_cbor, size_t req_cbor_len);
int echo_version(void* ctx, FFICallback callback, void* user_data, const uint8_t* req_cbor, size_t req_cbor_len);
int echo_destroy(void* ctx);
void echo_set_event_callback(void* ctx, FFICallback callback, void* user_data);
uint64_t echo_add_event_listener(void* ctx, const char* event_name, FFICallback callback, void* user_data);
int echo_remove_event_listener(void* ctx, uint64_t listener_id);
} // extern "C"
// ============================================================