fix: cbindgen extern fnc (#58)

This commit is contained in:
Théo Monnom
2023-05-09 03:46:28 +02:00
committed by GitHub
parent 8dd7979d04
commit 134466641b
2 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
language = "C"
language = "C++"
include_guard = "livekit_ffi"
autogen_warning = "/* Warning, this file is autogenerated. Don't modify this manually. */"
usize_is_size_t = true
+13 -8
View File
@@ -3,15 +3,18 @@
/* Warning, this file is autogenerated. Don't modify this manually. */
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
typedef size_t FfiHandleId;
using FfiHandleId = size_t;
#define INVALID_HANDLE 0
constexpr static const FfiHandleId INVALID_HANDLE = 0;
extern "C" {
FfiHandleId livekit_ffi_request(const uint8_t *data,
size_t len,
@@ -20,4 +23,6 @@ FfiHandleId livekit_ffi_request(const uint8_t *data,
bool livekit_ffi_drop_handle(FfiHandleId handle_id);
#endif /* livekit_ffi */
} // extern "C"
#endif // livekit_ffi