zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marios Hadjieleftheriou <mha...@gmail.com>
Subject C API string_completion_t callback
Date Wed, 31 Jul 2013 01:57:23 GMT
The string_completiion_t callback signature of the Zookeeper C API is:

typedef void(* string_completion_t)(int rc, const char *value, const void *data)

That means that when the callback is called, the user provided data is
returned as a const void and cannot be modified by client code, which
kind of defeats the purpose of passing any data in the first place.

Is there any reason why this parameter needs to be const?

Mime
View raw message