#include <ctdb.h>
#include <ctdb_protocol.h>
+#ifndef offsetof
+#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
+#endif
+
struct message_handler_info;
struct ctdb_reply_call;
void *priv_data;
/* Extra per-request info. */
- void (*extra_destructor)(struct ctdb_request *);
+ void (*extra_destructor)(struct ctdb_connection *,
+ struct ctdb_request *);
void *extra;
};
ctdb_callback_t, void *);
uint32_t new_reqid(struct ctdb_connection *ctdb);
-struct ctdb_reply_control *unpack_reply_control(struct ctdb_request *req,
+struct ctdb_reply_control *unpack_reply_control(struct ctdb_connection *ctdb,
+ struct ctdb_request *req,
enum ctdb_controls control);
void ctdb_cancel_callback(struct ctdb_connection *ctdb,
struct ctdb_request *req,