Permalink
Browse files

Added macros to set logging callbacks

  • Loading branch information...
1 parent dd7746b commit b9dabbb18140f962408339e88713efbe01e42f1a @tailhook committed Jan 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 include/website.h
View
@@ -23,6 +23,10 @@
(targ)->conn_callbacks[WS_CONN_CB_DISCONNECT] = (ws_connection_cb)fun
#define ws_MESSAGE_CB(targ, fun) \
(targ)->wsock_callbacks[WS_WEBSOCKET_CB_MESSAGE] = (ws_websocket_cb)fun
+#define ws_LOGSTD_CB(targ, fun) \
+ (targ)->logstd_cb = fun;
+#define ws_LOGMSG_CB(targ, fun) \
+ (targ)->logmsg_cb = fun;
#define ws_SET_TIMEOUT(targ, value) (targ)->network_timeout = (value)
#define ws_MESSAGE_DATA(msg, ptr, len, free_fun) \
(msg)->data = ptr; \

0 comments on commit b9dabbb

Please sign in to comment.