Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / mozglue / android / Ashmem.h
blob3307761e32903118d0582ba43fb54d16c86a916d
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>
9 #include "mozilla/Types.h"
11 namespace mozilla {
12 namespace android {
14 // Wrappers for the ASharedMemory function in the NDK
15 // https://developer.android.com/ndk/reference/group/memory
16 MFBT_API int ashmem_create(const char* name, size_t size);
17 MFBT_API size_t ashmem_getSize(int fd);
18 MFBT_API int ashmem_setProt(int fd, int prot);
20 } // namespace android
21 } // namespace mozilla
23 #endif // Ashmem_h__