You've already forked hexagonrpc
mirror of
https://github.com/linux-msm/hexagonrpc.git
synced 2026-02-25 13:13:52 -08:00
fastrpc: move remotectl interface to libhexagonrpc
This is useful for most programs using FastRPC, so it does not make sense to copy the interface every time. Move it to libhexagonrpc, even though it may not be strictly necessary to communicate over FastRPC, since it is common.
This commit is contained in:
@@ -25,4 +25,3 @@
|
||||
#include "interfaces/apps_std.def"
|
||||
#include "interfaces/adsp_listener.def"
|
||||
#include "interfaces/chre_slpi.def"
|
||||
#include "interfaces/remotectl.def"
|
||||
|
||||
@@ -21,12 +21,12 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <libhexagonrpc/fastrpc.h>
|
||||
#include <libhexagonrpc/interfaces/remotectl.def>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "aee_error.h"
|
||||
#include "interfaces/adsp_listener.def"
|
||||
#include "interfaces/remotectl.def"
|
||||
#include "iobuffer.h"
|
||||
#include "listener.h"
|
||||
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <libhexagonrpc/interfaces/remotectl.def>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "aee_error.h"
|
||||
#include "interfaces/remotectl.def"
|
||||
#include "iobuffer.h"
|
||||
#include "listener.h"
|
||||
#include "localctl.h"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <libhexagonrpc/fastrpc.h>
|
||||
#include <libhexagonrpc/interfaces/remotectl.def>
|
||||
#include <misc/fastrpc.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
@@ -35,7 +36,6 @@
|
||||
#include "hexagonfs.h"
|
||||
#include "interfaces/adsp_default_listener.def"
|
||||
#include "interfaces/chre_slpi.def"
|
||||
#include "interfaces/remotectl.def"
|
||||
#include "listener.h"
|
||||
#include "localctl.h"
|
||||
#include "rpcd_builder.h"
|
||||
|
||||
24
fastrpc/libhexagonrpc/interfaces.c
Normal file
24
fastrpc/libhexagonrpc/interfaces.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* FastRPC interface list for building common method definitions
|
||||
*
|
||||
* Copyright (C) 2023 The Sensor Shell Contributors
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#define HEXAGONRPC_BUILD_METHOD_DEFINITIONS 1
|
||||
|
||||
#include <libhexagonrpc/interfaces/remotectl.def>
|
||||
@@ -1,6 +1,7 @@
|
||||
libhexagonrpc = shared_library('hexagonrpc',
|
||||
'fastrpc.c',
|
||||
'context.c',
|
||||
'fastrpc.c',
|
||||
'interfaces.c',
|
||||
include_directories : include,
|
||||
install : true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user