fix: cbindgen extern fnc (#58)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
language = "C"
|
language = "C++"
|
||||||
include_guard = "livekit_ffi"
|
include_guard = "livekit_ffi"
|
||||||
autogen_warning = "/* Warning, this file is autogenerated. Don't modify this manually. */"
|
autogen_warning = "/* Warning, this file is autogenerated. Don't modify this manually. */"
|
||||||
usize_is_size_t = true
|
usize_is_size_t = true
|
||||||
|
|||||||
@@ -3,15 +3,18 @@
|
|||||||
|
|
||||||
/* Warning, this file is autogenerated. Don't modify this manually. */
|
/* Warning, this file is autogenerated. Don't modify this manually. */
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <stdbool.h>
|
#include <cstddef>
|
||||||
#include <stddef.h>
|
#include <cstdint>
|
||||||
#include <stdint.h>
|
#include <cstdlib>
|
||||||
#include <stdlib.h>
|
#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,
|
FfiHandleId livekit_ffi_request(const uint8_t *data,
|
||||||
size_t len,
|
size_t len,
|
||||||
@@ -20,4 +23,6 @@ FfiHandleId livekit_ffi_request(const uint8_t *data,
|
|||||||
|
|
||||||
bool livekit_ffi_drop_handle(FfiHandleId handle_id);
|
bool livekit_ffi_drop_handle(FfiHandleId handle_id);
|
||||||
|
|
||||||
#endif /* livekit_ffi */
|
} // extern "C"
|
||||||
|
|
||||||
|
#endif // livekit_ffi
|
||||||
|
|||||||
Reference in New Issue
Block a user