MOS Source Code
Loading...
Searching...
No Matches
rpc.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2// RPC library common definitions
3
4#pragma once
5
7
8typedef enum
9{
12 RPC_ARGTYPE_INT8, // signed char (s8)
13 RPC_ARGTYPE_INT16, // short (s16)
14 RPC_ARGTYPE_INT32, // int (s32)
15 RPC_ARGTYPE_INT64, // long long (s64)
20 RPC_ARGTYPE_STRING, // (const) char *
21 RPC_ARGTYPE_BUFFER, // (const) void *, size_t
23
rpc_argtype_t
Definition rpc.h:9
@ RPC_ARGTYPE_INT8
Definition rpc.h:12
@ RPC_ARGTYPE_UINT8
Definition rpc.h:16
@ RPC_ARGTYPE_BUFFER
Definition rpc.h:21
@ RPC_ARGTYPE_STRING
Definition rpc.h:20
@ RPC_ARGTYPE_INT64
Definition rpc.h:15
@ RPC_ARGTYPE_UINT16
Definition rpc.h:17
@ RPC_ARGTYPE_UINT32
Definition rpc.h:18
@ RPC_ARGTYPE_INT16
Definition rpc.h:13
@ RPC_ARGTYPE_INT32
Definition rpc.h:14
@ RPC_ARGTYPE_UINT64
Definition rpc.h:19
@ RPC_ARGTYPE_FLOAT64
Definition rpc.h:11
@ RPC_ARGTYPE_FLOAT32
Definition rpc.h:10
rpc_result_code_t
Definition rpc.h:25
@ RPC_RESULT_SERVER_INTERNAL_ERROR
Definition rpc.h:29
@ RPC_RESULT_CLIENT_INVALID_ARGSPEC
Definition rpc.h:31
@ RPC_RESULT_CALLID_MISMATCH
Definition rpc.h:34
@ RPC_RESULT_OK
Definition rpc.h:26
@ RPC_RESULT_NOT_IMPLEMENTED
Definition rpc.h:35
@ RPC_RESULT_SERVER_INVALID_FUNCTION
Definition rpc.h:27
@ RPC_RESULT_CLIENT_WRITE_FAILED
Definition rpc.h:32
@ RPC_RESULT_SERVER_INVALID_ARG_COUNT
Definition rpc.h:28
@ RPC_RESULT_INVALID_ARGUMENT
Definition rpc.h:30
@ RPC_RESULT_CLIENT_READ_FAILED
Definition rpc.h:33