From: Andy Green Date: Sun, 13 Dec 2015 23:02:51 +0000 (+0800) Subject: changelog explain protocols related api changes X-Git-Tag: upstream/1.7.3~222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a366bf946a13d2449a2418b17e2d1560740a906;p=platform%2Fupstream%2Flibwebsockets.git changelog explain protocols related api changes Signed-off-by: Andy Green --- diff --git a/changelog b/changelog index 3fc66e1..7b54d18 100644 --- a/changelog +++ b/changelog @@ -49,11 +49,24 @@ wrap or replace them. An example is shown in test server. User api changes ---------------- -Several older apis start with libwebsocket_ or libwebsockets_ while newer ones +1) Three APIS + + - lws_callback_on_writable_all_protocol(const struct lws_protocols *protocol) + - lws_callback_all_protocol(const struct lws_protocols *protocol) + - lws_rx_flow_allow_all_protocol(lws_rx_flow_allow_all_protocol) + +Now take an additional pointer to the lws_context in their first argument. + +The reason for this change is struct lws_protocols has been changed to remove +members that lws used for private storage: so the protocols struct in now +truly const and may be reused serially or simultaneously by different contexts. + +2) Several older apis start with libwebsocket_ or libwebsockets_ while newer ones all begin lws_. These apis have been changed to all begin with lws_. -However compatibility defines have been added in libwebsockets.h, so it is -perfectly build-compatible with older sources using the old api names. +However except for the three APIs mentioned above in 1), compatibility defines +have been added in libwebsockets.h, so it is largely build-compatible with +older sources using the old api names. If you are using lws with a distro, or otherwise can't rebuild the user code, you should add