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/. */
8 #include <linux/ashmem.h>
9 #include "mozilla/Types.h"
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