[Libwebsockets] API change / no feature test

Roger Light roger at atchoo.org
Mon Sep 1 21:53:28 CEST 2014


Hi,

Good point.

I'd suggest putting the old member back in, but marking it as unused.

Cheers,

Roger
On Sep 1, 2014 8:25 PM, "Michael Haberler" <andy.green at linaro.org> wrote:

> 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
>
>
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20140901/2e21cadf/attachment-0001.html>


More information about the Libwebsockets mailing list