I’m introducing a new option “type”, that uses the C99 bool (aka _Bool)
type, so that options which really are booleans are now of size (bool) —
i.e. 1 rather than sizeof (int).
These have new handy accessors too, nng_getopt_bool() and nng_setopt_bool().
This breaks existing code using these options, and I’m sorry about that.
But, as NNG’s API is not yet “stable”, I think its better to go ahead and
make these changes before the API settles into stone — having a cleaner API
that more naturally expresses the boolean type for boolean options seems
like a good choice to me.
I expect to push these changes shortly. These will also be in the next
pre-release build, 0.7.0.
The legacy compatibility API is unaffected by any of this.
Thanks.
- Garrett