2019-12-24 20:31:24 +00:00
|
|
|
/* Types and functions for communication between C++ and Objective-C layers. */
|
|
|
|
|
|
|
|
#if !defined(MAC_OBJECTIVE_C_TO_CPP_LINKS_H)
|
|
|
|
#define MAC_OBJECTIVE_C_TO_CPP_LINKS_H
|
|
|
|
|
2019-12-25 22:19:50 +00:00
|
|
|
// In C++ layer
|
|
|
|
external String_Const_u8
|
|
|
|
mac_SCu8(u8* str, u64 size);
|
|
|
|
|
|
|
|
external String_Const_u8
|
|
|
|
mac_push_string_copy(Arena *arena, String_Const_u8 src);
|
|
|
|
|
2019-12-25 01:17:12 +00:00
|
|
|
external void
|
2019-12-24 20:31:24 +00:00
|
|
|
mac_init();
|
|
|
|
|
2019-12-25 22:19:50 +00:00
|
|
|
// In Objective-C layer
|
|
|
|
external String_Const_u8
|
|
|
|
mac_standardize_path(Arena* arena, String_Const_u8 path);
|
|
|
|
|
2019-12-26 22:16:15 +00:00
|
|
|
external i32
|
|
|
|
mac_get_binary_path(void* buffer, u32 size);
|
|
|
|
|
2019-12-24 20:31:24 +00:00
|
|
|
#endif
|
|
|
|
|