--- libaitrpc/inc/aitrpc.h 2024/12/09 13:41:57 1.29.4.1 +++ libaitrpc/inc/aitrpc.h 2025/03/31 12:18:39 1.29.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.29.4.1 2024/12/09 13:41:57 misho Exp $ +* $Id: aitrpc.h,v 1.29.4.2 2025/03/31 12:18:39 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2024 +Copyright 2004 - 2025 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -74,7 +74,7 @@ typedef struct tagRPCFunc { void *func_parent; SLIST_ENTRY(tagRPCFunc) func_next; - AVL_ENTRY(tagRPCFunc) func_node; + RB_ENTRY(tagRPCFunc) func_node; } rpc_func_t; #define RPC_FUNC_SERVER(x) ((rpc_srv_t*) (x)->func_parent) @@ -83,11 +83,11 @@ typedef struct tagRPCFuncs { pthread_mutex_t mtx; struct tagRPCFunc *slh_first; - struct tagRPCFunc *avlh_root; + struct tagRPCFunc *rbh_root; } rpc_funcs_t; #define RPC_FUNCS_LOCK(x) pthread_mutex_lock(&(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 */