summaryrefslogtreecommitdiffstats
path: root/libsync
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-07-27 15:13:33 -0700
committerElliott Hughes <enh@google.com>2018-07-27 15:13:33 -0700
commitd1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc (patch)
treea89ff6ce409084dd0170136126389c5ce6589abf /libsync
parentfe732d108b70893f94f715baf6b48625d1b402d3 (diff)
downloadsystem_core-d1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc.tar.gz
system_core-d1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc.tar.bz2
system_core-d1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc.zip
NDK: add availability comments to <sync.h>.
Bug: N/A Test: N/A Change-Id: I0cc16cc9c32c6679098aa875d5f81829215868d4
Diffstat (limited to 'libsync')
-rw-r--r--libsync/include/ndk/sync.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libsync/include/ndk/sync.h b/libsync/include/ndk/sync.h
index ba7d8c4db..2a59e35bb 100644
--- a/libsync/include/ndk/sync.h
+++ b/libsync/include/ndk/sync.h
@@ -63,6 +63,8 @@ __BEGIN_DECLS
*
* The original fences remain valid, and the caller is responsible for closing
* them.
+ *
+ * Available since API level 26.
*/
int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(26);
@@ -70,6 +72,8 @@ int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(2
* Retrieve detailed information about a sync file and its fences.
*
* The returned sync_file_info must be freed by calling sync_file_info_free().
+ *
+ * Available since API level 26.
*/
struct sync_file_info* sync_file_info(int32_t fd) __INTRODUCED_IN(26);
@@ -78,6 +82,8 @@ struct sync_file_info* sync_file_info(int32_t fd) __INTRODUCED_IN(26);
*
* The returned array is owned by the parent sync file info, and has
* info->num_fences entries.
+ *
+ * Available since API level 26.
*/
static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file_info* info) {
// This header should compile in C, but some C++ projects enable
@@ -88,7 +94,11 @@ static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file
#pragma GCC diagnostic pop
}
-/** Free a struct sync_file_info structure */
+/**
+ * Free a struct sync_file_info structure
+ *
+ * Available since API level 26.
+ */
void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26);
#endif /* __ANDROID_API__ >= 26 */