From e97d467642a490d86540732ed126e569905c69de Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 13 Sep 2016 12:50:13 +1000 Subject: [PATCH] ctdb-daemon: Move function typedef to where it's used Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/common/common.h | 3 +++ ctdb/include/ctdb_private.h | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ctdb/common/common.h b/ctdb/common/common.h index cca48c9cb6e..48e5767c68a 100644 --- a/ctdb/common/common.h +++ b/ctdb/common/common.h @@ -22,6 +22,9 @@ /* From common/ctdb_io.c */ +typedef void (*ctdb_queue_cb_fn_t)(uint8_t *data, size_t length, + void *private_data); + int ctdb_queue_length(struct ctdb_queue *queue); int ctdb_queue_send(struct ctdb_queue *queue, uint8_t *data, uint32_t length); diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index e3085d0e6ee..63735898037 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -45,12 +45,6 @@ struct ctdb_registered_call { */ #define ctdb_validate_pnn(ctdb, pnn) (((uint32_t)(pnn)) < (ctdb)->num_nodes) - -/* called from the queue code when a packet comes in. Called with data==NULL - on error */ -typedef void (*ctdb_queue_cb_fn_t)(uint8_t *data, size_t length, - void *private_data); - /* used for callbacks in ctdb_control requests */ typedef void (*ctdb_control_callback_fn_t)(struct ctdb_context *, int32_t status, TDB_DATA data, -- 2.34.1