On Thu, 28 May 2015, Timo Teras wrote:

As alternative, I would then move encoding/decoding of all the complicated structures to where is defined. That is stream_put_prefix() should go in prefix.h (perhaps renamed to prefix_something). The problem is that it's not practical to assume that stream.h depends on all data types we want to encode/decode.

You could say prefix shouldn't depend on stream either though.

The data-types stream depends on should be fairly primitive and stable though. In quagga, I guess we accept prefix is that.

regards,
--
Paul Jakma      [email protected]  @pjakma Key ID: 64A2FF6A
Fortune:
Father Fitzpatrick: You left the cyanide capsules next to the Valium, you
                    old fool. That's just asking for trouble!

_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to