You can see how to do C API design in e.g. CZMQ, or RFC 21: http://rfc.zeromq.org/spec:21
On Wed, Feb 5, 2014 at 6:43 PM, Laurent Alebarde <[email protected]> wrote: > Le 05/02/2014 12:51, Pieter Hintjens a écrit : > > typedef struct zmq_proxy_open_chain_t {unsigned char _ [496];} > > Again, seriously? Magic numbers? We do this for zmq_msg for > unfortunate historic reasons. It is _very bad_ API design. > > > Replaced by an opaque void pointer, eliminating this awful trick. > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
