The goal is to check compilation and clang-tidy at CI stage. For both compile and tidy all dependent headers are required. Compilation and tidy-check enabled by the next commit. Done by invoking the following bash commands: cp system/core/libcutils/include/cutils/native_handle.h \ system/core/libcutils/include/cutils/compiler.h \ system/core/libcutils/include/cutils/trace.h \ external/drm_hwcomposer/.ci/android_headers/cutils/ cp external/libdrm/android/gralloc_handle.h \ external/drm_hwcomposer/.ci/android_headers/gralloc_handle.h cp hardware/libhardware/include/hardware/gralloc.h \ hardware/libhardware/include/hardware/hardware.h \ hardware/libhardware/include/hardware/hwcomposer.h \ hardware/libhardware/include/hardware/hwcomposer2.h \ hardware/libhardware/include/hardware/hwcomposer_defs.h \ external/drm_hwcomposer/.ci/android_headers/hardware/ cp system/core/libsync/include/sync/sync.h \ external/drm_hwcomposer/.ci/android_headers/sync/sync.h cp system/core/libsync/include/ndk/sync.h \ external/drm_hwcomposer/.ci/android_headers/ndk/sync.h cp system/core/libsystem/include/system/graphics-base-v1.0.h \ system/core/libsystem/include/system/graphics-base-v1.1.h \ system/core/libsystem/include/system/graphics-base-v1.2.h \ system/core/libsystem/include/system/graphics-base.h \ system/core/libsystem/include/system/graphics-sw.h \ system/core/libsystem/include/system/graphics.h \ external/drm_hwcomposer/.ci/android_headers/system/ cp frameworks/native/libs/ui/include/ui/GraphicBuffer.h \ external/drm_hwcomposer/.ci/android_headers/ui/GraphicBuffer.h cp system/core/libutils/include/utils/Trace.h \ external/drm_hwcomposer/.ci/android_headers/utils/Trace.h Turn off clang-format check for these files. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Reviewed-by: Matvii Zorin <matvii.zorin@globallogic.com>
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
// clang-format off
|
|
/*
|
|
* sync.h
|
|
*
|
|
* Copyright 2012 Google, Inc
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef __SYS_CORE_SYNC_H
|
|
#define __SYS_CORE_SYNC_H
|
|
|
|
/* This file contains the legacy sync interface used by Android platform and
|
|
* device code. The direct contents will be removed over time as code
|
|
* transitions to using the updated interface in ndk/sync.h. When this file is
|
|
* empty other than the ndk/sync.h include, that file will be renamed to
|
|
* replace this one.
|
|
*
|
|
* New code should continue to include this file (#include <android/sync.h>)
|
|
* instead of ndk/sync.h so the eventual rename is seamless, but should only
|
|
* use the things declared in ndk/sync.h.
|
|
*
|
|
* This file used to be called sync/sync.h, but we renamed to that both the
|
|
* platform and NDK call it android/sync.h. A symlink from the old name to this
|
|
* one exists temporarily to avoid having to change all sync clients
|
|
* simultaneously. It will be removed when they've been updated, and probably
|
|
* after this change has been delivered to AOSP so that integrations don't
|
|
* break builds.
|
|
*/
|
|
|
|
#include "../ndk/sync.h"
|
|
|
|
__BEGIN_DECLS
|
|
|
|
/* timeout in msecs */
|
|
int sync_wait(int fd, int timeout);
|
|
|
|
__END_DECLS
|
|
|
|
#endif /* __SYS_CORE_SYNC_H */
|