Bug 1651162 [wpt PR 24490] - Origin isolation: add WPTs for different ports, a=testonly
[gecko.git] / mozglue / android / Ashmem.h
blob9779f71ba0f3c41eba307fb5539992db51be891b
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef Ashmem_h__
6 #define Ashmem_h__
8 #include <linux/ashmem.h>
10 namespace mozilla {
11 namespace android {
13 // Wrappers for the ASharedMemory function in the NDK
14 // https://developer.android.com/ndk/reference/group/memory
15 MFBT_API int ashmem_create(const char* name, size_t size);
16 MFBT_API size_t ashmem_getSize(int fd);
17 MFBT_API int ashmem_setProt(int fd, int prot);
19 } // namespace android
20 } // namespace mozilla
22 #endif // Ashmem_h__