commit | 4846b9048bc711dc77ec7ead69e76273fed008e5 | [log] [tgz] |
---|---|---|
author | Yin-Chia Yeh <yinchiayeh@google.com> | Fri Feb 16 12:04:48 2018 -0800 |
committer | Yin-Chia Yeh <yinchiayeh@google.com> | Fri Feb 16 16:27:42 2018 -0800 |
tree | 82c48f0933097d30c158fd040e390b6aede14266 | |
parent | 4d9abd9392ab0697548bd9c4c7a25617886a8980 [diff] |
Camera NDK: fix headers - Include stdbool.h for using bool in C - Add typedef to restore backward compatibility Bug: https://github.com/android-ndk/ndk/issues/559 Change-Id: I28f5a99ea6271e364a2d1db793dbadcc63fe2f2c
diff --git a/camera/ndk/include/camera/NdkCameraCaptureSession.h b/camera/ndk/include/camera/NdkCameraCaptureSession.h index d96f538..16d227a 100644 --- a/camera/ndk/include/camera/NdkCameraCaptureSession.h +++ b/camera/ndk/include/camera/NdkCameraCaptureSession.h
@@ -33,6 +33,7 @@ * Do not #include files that aren't part of the NDK. */ #include <sys/cdefs.h> +#include <stdbool.h> #include <android/native_window.h> #include "NdkCameraError.h"
diff --git a/camera/ndk/include/camera/NdkCameraDevice.h b/camera/ndk/include/camera/NdkCameraDevice.h index 6c9e85a..2c65529 100644 --- a/camera/ndk/include/camera/NdkCameraDevice.h +++ b/camera/ndk/include/camera/NdkCameraDevice.h
@@ -153,6 +153,11 @@ } ACameraDevice_StateCallbacks; /** + * For backward compatiblity. + */ +typedef ACameraDevice_StateCallbacks ACameraDevice_stateCallbacks; + +/** * Close the connection and free this ACameraDevice synchronously. Access to the ACameraDevice * after calling this method will cause a crash. *