Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Using C++ with the Paho C client library


what about the elements of the connectOptions, willOptions and SSLOptions structures, for instance?


On 17/05/13 10:51, Roger Light wrote:

To add const to the C API it seems to me I would have to a) be inconsistent
in its use,  b) make the API harder to read, c) break previous C programs by
requiring them to add casts d) describe the inconsistent use of const in the
docs to fend off future re-discussions.

char** is not cryptic for C!
If the effort was limited to the "char *" case then only a) above
would apply. I may be wrong, but I believe the only cases where "char
**" is an issue is the MQTTAsync_subscribeMany() and
MQTTAsync_unsubscribeMany() functions (and their synchronous


paho-dev mailing list

Back to the top