From b60820b4b9694a8bd60ed622cb6195dd8fe6a4d6 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Tue, 4 Aug 2015 17:38:33 +0300 Subject: [PATCH] added macro for connection; --- include/sntl/sntllv2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sntl/sntllv2.h b/include/sntl/sntllv2.h index 36a027c..8ae3a0b 100644 --- a/include/sntl/sntllv2.h +++ b/include/sntl/sntllv2.h @@ -93,6 +93,10 @@ typedef struct __connection_t { usrtc_node_t csnode; /** < node to store the connection within list */ } conn_t; +#define connection_getpctx(c) (c)->pctx +#define connection_getpriv(c) (c)->pctx->priv +#define connection_setpriv(c, p) (c)->pctx->priv = (void *)(p) + struct __connection_rpc_list_type; struct __message_t;