Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fc367df authored by Andrei Homescu's avatar Andrei Homescu
Browse files

libbinder_ndk: Provide a fake llndk-versioning.h header

Remove an unnecessary check for __TRUSTY__ by providing
a fake llndk-versioning.h header instead.

Bug: 242243245
Test: m libbinder_ndk_on_trusty_mock
Change-Id: I10adf0059deb4781c6e1e5ac05ccdc5a83a61cce
parent 0dbe6326
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -18,11 +18,8 @@

#include <android/binder_ibinder.h>
#include <android/binder_status.h>
#include <sys/cdefs.h>

#ifndef __TRUSTY__
#include <android/llndk-versioning.h>
#endif
#include <sys/cdefs.h>

__BEGIN_DECLS

+18 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * 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.
 */
#pragma once

#define __INTRODUCED_IN_LLNDK(x) /* nothing on Trusty */
+0 −1
Original line number Diff line number Diff line
@@ -27,4 +27,3 @@
#endif

#define __INTRODUCED_IN(x) /* nothing on Trusty */
#define __INTRODUCED_IN_LLNDK(x) /* nothing on Trusty */