ctdb-daemon: Move function typedef to where it's used
authorAmitay Isaacs <amitay@gmail.com>
Tue, 13 Sep 2016 02:50:13 +0000 (12:50 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 16 Dec 2016 07:42:32 +0000 (08:42 +0100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/common.h
ctdb/include/ctdb_private.h

index cca48c9cb6e5eced8886981ba1cb5d82f8459989..48e5767c68a95a65f625df53badf823be249f016 100644 (file)
@@ -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);
index e3085d0e6ee265883833ece310539371f7967dc7..6373589803717d1b835181ca43a69f75805dae47 100644 (file)
@@ -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,