summaryrefslogtreecommitdiff
path: root/include/android/sharedmem.h
diff options
context:
space:
mode:
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
};