1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| // Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
| // Use of this source code is governed by a BSD-style license that can be
| // found in the LICENSE file.
|
| #ifndef __CALL_FUN_IPC_H__
| #define __CALL_FUN_IPC_H__
|
| #ifdef __cplusplus
| extern "C" {
| #endif
|
| struct FunMap{
| char *fun_name;
| int (*fun)(void *);
| };
|
| void call_fun_ipc_server_init(struct FunMap *map, int num, char *dbus_name, char *dbus_if, char *dbus_path, int needloop);
| void call_fun_ipc_server_deinit(void);
|
| int call_fun_ipc_call(char *funname, void *data, int len, int restore);
| void call_fun_ipc_client_init(char *dbus_name, char *dbus_if, char *dbus_path, char *share_path, int needloop);
| void call_fun_ipc_client_deinit(void);
|
| void disable_loop(void);
|
| #ifdef __cplusplus
| }
| #endif
|
| #endif
|
|