summaryrefslogtreecommitdiff
path: root/include/android/sharedmem.h
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2018-06-18 12:28:46 -0700
committer Elliott Hughes <enh@google.com> 2018-06-18 14:56:07 -0700
commit9db409b053460e065cefb1d1caefe048f90cfff0 (patch)
tree30bc2090dc4954ea8a38ecb57152436c3da819eb /include/android/sharedmem.h
parent5d51a061ead239c49e9a7fef2159adb00dddad21 (diff)
Add __INTRODUCED_IN to core <android/*.h> APIs.
Bug: https://github.com/android-ndk/ndk/issues/706 Test: builds Change-Id: I23db5a2180517045bafabe6fbf783456cbddf21a
Diffstat (limited to 'include/android/sharedmem.h')
-rw-r--r--include/android/sharedmem.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/android/sharedmem.h b/include/android/sharedmem.h
index 46d2f4bf4a..0354f17f48 100644
--- a/include/android/sharedmem.h
+++ b/include/android/sharedmem.h
@@ -52,8 +52,6 @@
extern "C" {
#endif
-#if __ANDROID_API__ >= __ANDROID_API_O__
-
/**
* Create a shared memory region.
*
@@ -67,7 +65,7 @@ extern "C" {
* \param size size of the shared memory region
* \return file descriptor that denotes the shared memory; error code on failure.
*/
-int ASharedMemory_create(const char *name, size_t size);
+int ASharedMemory_create(const char *name, size_t size) __INTRODUCED_IN(26);
/**
* Get the size of the shared memory region.
@@ -75,7 +73,7 @@ int ASharedMemory_create(const char *name, size_t size);
* \param fd file descriptor of the shared memory region
* \return size in bytes; 0 if fd is not a valid shared memory file descriptor.
*/
-size_t ASharedMemory_getSize(int fd);
+size_t ASharedMemory_getSize(int fd) __INTRODUCED_IN(26);
/**
* Restrict access of shared memory region.
@@ -106,9 +104,7 @@ size_t ASharedMemory_getSize(int fd);
* updated access. Note access can only be removed, but not added back.
* \return 0 for success, error code on failure.
*/
-int ASharedMemory_setProt(int fd, int prot);
-
-#endif
+int ASharedMemory_setProt(int fd, int prot) __INTRODUCED_IN(26);
#ifdef __cplusplus
};