summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2018-07-27 17:13:33 -0500
committerElliott Hughes2018-07-27 17:13:33 -0500
commitd1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc (patch)
treea89ff6ce409084dd0170136126389c5ce6589abf /libsync
parentfe732d108b70893f94f715baf6b48625d1b402d3 (diff)
downloadplatform-system-core-d1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc.tar.gz
platform-system-core-d1c5c5baaa0145e9d1baa4950b51c8d4cf4e3ffc.tar.xz
platform-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
63 * 63 *
64 * The original fences remain valid, and the caller is responsible for closing 64 * The original fences remain valid, and the caller is responsible for closing
65 * them. 65 * them.
66 *
67 * Available since API level 26.
66 */ 68 */
67int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(26); 69int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(26);
68 70
@@ -70,6 +72,8 @@ int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(2
70 * Retrieve detailed information about a sync file and its fences. 72 * Retrieve detailed information about a sync file and its fences.
71 * 73 *
72 * The returned sync_file_info must be freed by calling sync_file_info_free(). 74 * The returned sync_file_info must be freed by calling sync_file_info_free().
75 *
76 * Available since API level 26.
73 */ 77 */
74struct sync_file_info* sync_file_info(int32_t fd) __INTRODUCED_IN(26); 78struct sync_file_info* sync_file_info(int32_t fd) __INTRODUCED_IN(26);
75 79
@@ -78,6 +82,8 @@ struct sync_file_info* sync_file_info(int32_t fd) __INTRODUCED_IN(26);
78 * 82 *
79 * The returned array is owned by the parent sync file info, and has 83 * The returned array is owned by the parent sync file info, and has
80 * info->num_fences entries. 84 * info->num_fences entries.
85 *
86 * Available since API level 26.
81 */ 87 */
82static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file_info* info) { 88static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file_info* info) {
83// This header should compile in C, but some C++ projects enable 89// 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
88#pragma GCC diagnostic pop 94#pragma GCC diagnostic pop
89} 95}
90 96
91/** Free a struct sync_file_info structure */ 97/**
98 * Free a struct sync_file_info structure
99 *
100 * Available since API level 26.
101 */
92void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26); 102void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26);
93 103
94#endif /* __ANDROID_API__ >= 26 */ 104#endif /* __ANDROID_API__ >= 26 */