| 118 | |
| 119 | #ifndef MMKV_OHOS |
| 120 | void *loadLibrary() { |
| 121 | auto name = "libandroid.so"; |
| 122 | static auto handle = dlopen(name, RTLD_LAZY | RTLD_LOCAL); |
| 123 | if (handle == RTLD_DEFAULT) { |
| 124 | MMKVError("unable to load library %s", name); |
| 125 | } |
| 126 | return handle; |
| 127 | } |
| 128 | |
| 129 | typedef int (*AShmem_create_t)(const char *name, size_t size); |
| 130 | typedef size_t (*AShmem_getSize_t)(int fd); |
no outgoing calls
no test coverage detected