You've already forked hexagonrpc
mirror of
https://github.com/linux-msm/hexagonrpc.git
synced 2026-02-25 13:13:52 -08:00
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:
42
fastrpc/fastrpc_adsp_default_listener.h
Normal file
42
fastrpc/fastrpc_adsp_default_listener.h
Normal 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
|
||||
Reference in New Issue
Block a user