sm6150-common: libqti-perfd-client: Move to C

* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
This commit is contained in:
Sebastiano Barezzi 2021-06-20 02:49:03 +02:00 committed by Arian
parent 40e96f346b
commit 855585a84b
2 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@ cc_library_shared {
proprietary: true, proprietary: true,
defaults: ["hidl_defaults"], defaults: ["hidl_defaults"],
srcs: [ srcs: [
"client.cpp", "client.c",
], ],
cflags: [ cflags: [
"-Werror", "-Werror",

View File

@ -3,9 +3,9 @@
#include <stdint.h> #include <stdint.h>
#include <log/log.h> #include <log/log.h>
extern "C" void perf_get_feedback() {} void perf_get_feedback() {}
extern "C" void perf_hint() {} void perf_hint() {}
extern "C" int perf_lock_acq(int handle, int duration, int arg3[], int arg4) { int perf_lock_acq(int handle, int duration, int arg3[], int arg4) {
ALOGI("perf_lock_acq: handle: %d, duration: %d, arg3[0]: %d, arg4: %d", ALOGI("perf_lock_acq: handle: %d, duration: %d, arg3[0]: %d, arg4: %d",
handle, duration, arg3[0], arg4); handle, duration, arg3[0], arg4);
if (handle > 0) if (handle > 0)
@ -13,12 +13,12 @@ extern "C" int perf_lock_acq(int handle, int duration, int arg3[], int arg4) {
return 233; return 233;
} }
extern "C" void perf_lock_cmd() {} void perf_lock_cmd() {}
extern "C" int perf_lock_rel(int handle) { int perf_lock_rel(int handle) {
ALOGI("perf_lock_rel: handle: %d", handle); ALOGI("perf_lock_rel: handle: %d", handle);
if (handle > 0) if (handle > 0)
return handle; return handle;
return 233; return 233;
} }
extern "C" void perf_lock_use_profile() {} void perf_lock_use_profile() {}