version 1.29, 2024/03/20 17:32:30
|
version 1.29.4.2, 2025/03/31 12:18:39
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004 - 2024 | Copyright 2004 - 2025 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 74 typedef struct tagRPCFunc {
|
Line 74 typedef struct tagRPCFunc {
|
void *func_parent; |
void *func_parent; |
|
|
SLIST_ENTRY(tagRPCFunc) func_next; |
SLIST_ENTRY(tagRPCFunc) func_next; |
AVL_ENTRY(tagRPCFunc) func_node; | RB_ENTRY(tagRPCFunc) func_node; |
} rpc_func_t; |
} rpc_func_t; |
#define RPC_FUNC_SERVER(x) ((rpc_srv_t*) (x)->func_parent) |
#define RPC_FUNC_SERVER(x) ((rpc_srv_t*) (x)->func_parent) |
|
|
Line 83 typedef struct tagRPCFuncs {
|
Line 83 typedef struct tagRPCFuncs {
|
pthread_mutex_t mtx; |
pthread_mutex_t mtx; |
|
|
struct tagRPCFunc *slh_first; |
struct tagRPCFunc *slh_first; |
struct tagRPCFunc *avlh_root; | struct tagRPCFunc *rbh_root; |
} rpc_funcs_t; |
} rpc_funcs_t; |
#define RPC_FUNCS_LOCK(x) pthread_mutex_lock(&(x)->mtx) |
#define RPC_FUNCS_LOCK(x) pthread_mutex_lock(&(x)->mtx) |
#define RPC_FUNCS_UNLOCK(x) pthread_mutex_unlock(&(x)->mtx) |
#define RPC_FUNCS_UNLOCK(x) pthread_mutex_unlock(&(x)->mtx) |
#define RPC_FUNCS_ISEMPTY(x) AVL_EMPTY((x)) | #define RPC_FUNCS_ISEMPTY(x) RB_EMPTY((x)) |
|
|
|
|
/* BLOB register element */ |
/* BLOB register element */ |
Line 156 typedef int (*rpc_callback_t)(rpc_cli_t *, struct tagR
|
Line 156 typedef int (*rpc_callback_t)(rpc_cli_t *, struct tagR
|
|
|
/* ----------------------------------------------------------------------- */ |
/* ----------------------------------------------------------------------- */ |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
/* |
/* |
* rpc_register_srvPing() - Register ping service function |
* rpc_register_srvPing() - Register ping service function |
* |
* |
Line 398 int rpc_srv_recvBLOB(rpc_cli_t * __restrict cli, rpc_b
|
Line 402 int rpc_srv_recvBLOB(rpc_cli_t * __restrict cli, rpc_b
|
*/ |
*/ |
int rpc_srv_Return(rpc_cli_t *c); |
int rpc_srv_Return(rpc_cli_t *c); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
#endif |
#endif |