diff options
author | Marissa Wall | 2018-06-05 12:22:32 -0500 |
---|---|---|
committer | Marissa Wall | 2018-06-05 12:22:32 -0500 |
commit | eed25df46a22a143a0341113759894c23a9b6cbf (patch) | |
tree | 258eea596705e2709354471eace7f3b135c1cfac /libsync/include | |
parent | 798ba95bda14f9f28561a2a27ba406537f8bb8a8 (diff) | |
download | platform-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.h | 20 |
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 | ||
44 | struct sync_fence_info_data { | ||
45 | uint32_t len; | ||
46 | char name[32]; | ||
47 | int32_t status; | ||
48 | uint8_t pt_info[0]; | ||
49 | }; | ||
50 | |||
51 | struct 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 */ |
45 | int sync_wait(int fd, int timeout); | 61 | int sync_wait(int fd, int timeout); |
62 | struct sync_fence_info_data *sync_fence_info(int fd); | ||
63 | struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, | ||
64 | struct sync_pt_info *itr); | ||
65 | void sync_fence_info_free(struct sync_fence_info_data *info); | ||
46 | 66 | ||
47 | __END_DECLS | 67 | __END_DECLS |
48 | 68 | ||