interfaces: fx.tunnel: Fixup

Change-Id: I7f8a8b1ab7fda8bf7f35bb12a2cee97f3a9f3763
This commit is contained in:
Sebastiano Barezzi 2024-10-14 18:06:30 +02:00
parent cdc6694adc
commit 40728c3a73
No known key found for this signature in database
GPG Key ID: CFD5EBA1856D4981
3 changed files with 16 additions and 1 deletions

View File

@ -6,6 +6,7 @@ hidl_interface {
system_ext_specific: true, system_ext_specific: true,
srcs: [ srcs: [
"IMiFxTunnel.hal", "IMiFxTunnel.hal",
"IMiFxTunnelCallback.hal",
], ],
interfaces: [ interfaces: [
"android.hidl.base@1.0", "android.hidl.base@1.0",

View File

@ -6,6 +6,9 @@
package vendor.xiaomi.hardware.fx.tunnel@1.0; package vendor.xiaomi.hardware.fx.tunnel@1.0;
import @1.0::IMiFxTunnelCallback;
interface IMiFxTunnel { interface IMiFxTunnel {
invokeCommand(int32_t cmdId, vec<uint8_t> params) generates (int32_t resultCode, vec<uint8_t> out_buf); setNotify(IMiFxTunnelCallback callback);
invokeCommand(int32_t cmdId, vec<int8_t> params) generates (int32_t resultCode, vec<int8_t> out_buf);
}; };

View File

@ -0,0 +1,11 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.xiaomi.hardware.fx.tunnel@1.0;
interface IMiFxTunnelCallback {
onMessage(uint64_t param_1, uint32_t param_2, uint32_t param_3, vec<int8_t> param_4);
};