summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2018-06-14 17:26:12 -0500
committerElliott Hughes2018-06-14 17:27:26 -0500
commit2a358106b7e554396088506e8e817520e2882aee (patch)
tree74279cb5521e7a21071c255ceeec76592fae407f /libsync
parent7222199281b824fbe08f216860d2cd5153d33d11 (diff)
downloadplatform-system-core-2a358106b7e554396088506e8e817520e2882aee.tar.gz
platform-system-core-2a358106b7e554396088506e8e817520e2882aee.tar.xz
platform-system-core-2a358106b7e554396088506e8e817520e2882aee.zip
libsync: add __INTRODUCED_IN annotations.
Bug: https://github.com/android-ndk/ndk/issues/706 Test: N/A Change-Id: I8a4f98f2c929e28d81672d7e2e0d5dd63d27c7a6
Diffstat (limited to 'libsync')
-rw-r--r--libsync/include/ndk/sync.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/libsync/include/ndk/sync.h b/libsync/include/ndk/sync.h
index a786d3ef9..49f01e142 100644
--- a/libsync/include/ndk/sync.h
+++ b/libsync/include/ndk/sync.h
@@ -32,8 +32,6 @@
32 32
33__BEGIN_DECLS 33__BEGIN_DECLS
34 34
35#if __ANDROID_API__ >= __ANDROID_API_O__
36
37/* Fences indicate the status of an asynchronous task. They are initially 35/* Fences indicate the status of an asynchronous task. They are initially
38 * in unsignaled state (0), and make a one-time transition to either signaled 36 * in unsignaled state (0), and make a one-time transition to either signaled
39 * (1) or error (< 0) state. A sync file is a collection of one or more fences; 37 * (1) or error (< 0) state. A sync file is a collection of one or more fences;
@@ -63,14 +61,14 @@ __BEGIN_DECLS
63 * The original fences remain valid, and the caller is responsible for closing 61 * The original fences remain valid, and the caller is responsible for closing
64 * them. 62 * them.
65 */ 63 */
66int32_t sync_merge(const char *name, int32_t fd1, int32_t fd2); 64int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(26);
67 65
68/** 66/**
69 * Retrieve detailed information about a sync file and its fences. 67 * Retrieve detailed information about a sync file and its fences.
70 * 68 *
71 * The returned sync_file_info must be freed by calling sync_file_info_free(). 69 * The returned sync_file_info must be freed by calling sync_file_info_free().
72 */ 70 */
73struct sync_file_info *sync_file_info(int32_t fd); 71struct sync_file_info* sync_file_info(int32_t fd) __INTRODUCED_IN(26);
74 72
75/** 73/**
76 * Get the array of fence infos from the sync file's info. 74 * Get the array of fence infos from the sync file's info.
@@ -88,9 +86,7 @@ static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file
88} 86}
89 87
90/** Free a struct sync_file_info structure */ 88/** Free a struct sync_file_info structure */
91void sync_file_info_free(struct sync_file_info *info); 89void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26);
92
93#endif // __ANDROID_API__ >= __ANDROID_API_O__
94 90
95__END_DECLS 91__END_DECLS
96 92