From 9db409b053460e065cefb1d1caefe048f90cfff0 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 18 Jun 2018 12:28:46 -0700 Subject: Add __INTRODUCED_IN to core APIs. Bug: https://github.com/android-ndk/ndk/issues/706 Test: builds Change-Id: I23db5a2180517045bafabe6fbf783456cbddf21a --- include/android/sharedmem.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'include/android/sharedmem.h') 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 }; -- cgit v1.2.3-59-g8ed1b