summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarissa Wall2018-06-05 12:22:32 -0500
committerMarissa Wall2018-06-05 12:22:32 -0500
commiteed25df46a22a143a0341113759894c23a9b6cbf (patch)
tree258eea596705e2709354471eace7f3b135c1cfac /libsync/include
parent798ba95bda14f9f28561a2a27ba406537f8bb8a8 (diff)
downloadplatform-system-core-eed25df46a22a143a0341113759894c23a9b6cbf.tar.gz
platform-system-core-eed25df46a22a143a0341113759894c23a9b6cbf.tar.xz
platform-system-core-eed25df46a22a143a0341113759894c23a9b6cbf.zip
Revert "sync: remove legacy sync info API"
This reverts commit 798ba95bda14f9f28561a2a27ba406537f8bb8a8. Brodcom uses the sync_fence_info_data directly. https://android-build.googleplex.com/builds/submitted/4821789/elfin-userdebug/latest/view/logs/build_error.log Change-Id: I72fed683397e9b10007b71253e20ded43726d377
Diffstat (limited to 'libsync/include')
-rw-r--r--libsync/include/android/sync.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libsync/include/android/sync.h b/libsync/include/android/sync.h
index 32bb878ba..68f74a0b2 100644
--- a/libsync/include/android/sync.h
+++ b/libsync/include/android/sync.h
@@ -41,8 +41,28 @@
41 41
42__BEGIN_DECLS 42__BEGIN_DECLS
43 43
44struct sync_fence_info_data {
45 uint32_t len;
46 char name[32];
47 int32_t status;
48 uint8_t pt_info[0];
49};
50
51struct sync_pt_info {
52 uint32_t len;
53 char obj_name[32];
54 char driver_name[32];
55 int32_t status;
56 uint64_t timestamp_ns;
57 uint8_t driver_data[0];
58};
59
44/* timeout in msecs */ 60/* timeout in msecs */
45int sync_wait(int fd, int timeout); 61int sync_wait(int fd, int timeout);
62struct sync_fence_info_data *sync_fence_info(int fd);
63struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info,
64 struct sync_pt_info *itr);
65void sync_fence_info_free(struct sync_fence_info_data *info);
46 66
47__END_DECLS 67__END_DECLS
48 68