fastrpc: add adsp_default_listener interface

The ADSP default listener interface is an interface with which to
register the default listener for FastRPC reverse tunneling. Add the
interface for this so programs can advertise their ability to receive
FastRPC messages.

It was accidentally #include-ed in a previous commit.

Fixes: 2ba7bf1df6 ("fastrpc: rpcd: close remote handle")
This commit is contained in:
Richard Acayan
2023-01-05 21:17:04 -05:00
parent 15e1041d7f
commit ba3d9facec

View File

@@ -0,0 +1,42 @@
/*
* FastRPC reverse tunnel registration interface
*
* Copyright (C) 2023 Richard Acayan
*
* This file is part of sensh.
*
* Sensh is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef FASTRPC_ADSP_DEFAULT_LISTENER_H
#define FASTRPC_ADSP_DEFAULT_LISTENER_H
#include "fastrpc.h"
#define DEFINE_REMOTE_PROCEDURE(mid, name, \
innums, inbufs, \
outnums, outbufs) \
struct fastrpc_function_def_interp2 name##_def = { \
.msg_id = mid, \
.in_nums = innums, \
.in_bufs = inbufs, \
.out_nums = outnums, \
.out_bufs = outbufs, \
}
DEFINE_REMOTE_PROCEDURE(0, adsp_default_listener_register, 0, 0, 0, 0);
#undef DEFINE_REMOTE_PROCEDURE
#endif