OSDN Git Service

Camera: add static assertion for camera_metadata
authorYin-Chia Yeh <yinchiayeh@google.com>
Sat, 15 Apr 2017 01:11:45 +0000 (18:11 -0700)
committerYin-Chia Yeh <yinchiayeh@google.com>
Mon, 17 Apr 2017 21:56:57 +0000 (14:56 -0700)
commit7591a98dbadf9502f604ea38b6741b50d01ece9b
tree0882afb737bd03e1bd6bc6f205ccb11a48176879
parenta834562a91b97f8b2ab3a5d6ed99d778c071f2cf
Camera: add static assertion for camera_metadata

Make sure no one updates these structs in the future.
Treble will allow framework and HAL targeting different
copy of libcamera_metadata, so make sure we don't update
these structs and cause mismatch.

Test: compile (as this is static check)
Bug: 37287148
Change-Id: Ibfc6d710e97e276a9d7eea1ceee1736f75f9a056
camera/Android.bp
camera/src/camera_metadata.c