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:
Richard Acayan
2023-12-07 20:14:43 -05:00
parent 154bd2631c
commit 8949140fa6
7 changed files with 29 additions and 5 deletions

View File

@@ -25,4 +25,3 @@
#include "interfaces/apps_std.def"
#include "interfaces/adsp_listener.def"
#include "interfaces/chre_slpi.def"
#include "interfaces/remotectl.def"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View 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>

View File

@@ -1,6 +1,7 @@
libhexagonrpc = shared_library('hexagonrpc',
'fastrpc.c',
'context.c',
'fastrpc.c',
'interfaces.c',
include_directories : include,
install : true
)