[Libwebsockets] API change / no feature test

Michael Haberler mail17 at mah.priv.at
Mon Sep 1 21:24:41 CEST 2014

Hi Andy,

the libwebsocket_protocols struct changed in https://github.com/warmcat/libwebsockets/commit/822241c2a79d05c535dc2c7415fd8345ee72b7fb

unfortunately this changes the position of the id field, and hence breaks its initialisation:

- *             got send yourself.
  * @id:                ignored by lws, but useful to contain user information bound
  *             to the selected protocol.  For example if this protocol was
  *             called "myprotocol-v2", you might set id to 2, and the user
@@ -890,7 +882,6 @@ struct libwebsocket_protocols {
        callback_function *callback;
        size_t per_session_data_size;
        size_t rx_buffer_size;
-       int no_buffer_all_partial_tx;
        unsigned int id;

I guess we need a feature test in one way or the other to make existing using code compile?

- Michael

More information about the Libwebsockets mailing list