From aa3b9bc2c3effe21f89af434e4d9ca770ce0bf6b Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sun, 26 Jul 2015 03:43:54 +0300 Subject: [PATCH] added useful macros; --- include/sntl/sntllv2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sntl/sntllv2.h b/include/sntl/sntllv2.h index 0731e8a..896eb1d 100644 --- a/include/sntl/sntllv2.h +++ b/include/sntl/sntllv2.h @@ -182,6 +182,8 @@ typedef struct __connections_subsys_type { #define connections_set_channelcall(c, f) (c)->set_typed_list_callback = (f) #define connections_set_ondestroy(c, f) (c)->on_destroy = (f) #define connections_set_onpulse(c, f) (c)->on_pulse = (f) +#define connections_set_priv(c, p) (c)->priv = (p) +#define connections_get_priv(c) (c)->priv typedef struct __rpc_typed_list_type { int type_id;