diff options
author | Amitay Isaacs <amitay@gmail.com> | 2016-09-13 12:50:13 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2016-12-16 08:42:32 +0100 |
commit | e97d467642a490d86540732ed126e569905c69de (patch) | |
tree | 1a41b253e6b4ed949c04269919895ee0cb7b4db6 | |
parent | 2eaabee7ac0bc5526129b506ec957d2da303deb2 (diff) | |
download | samba-e97d467642a490d86540732ed126e569905c69de.tar.gz |
ctdb-daemon: Move function typedef to where it's used
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | ctdb/common/common.h | 3 | ||||
-rw-r--r-- | 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, |