From 786f37040cdcb64b24eb0b437307ed5e208f717f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 17 Jan 2009 17:54:57 +0100 Subject: sync: add generic tx_queue for all synchronization modes This patch adds a generic tx queue for all synchronization modes. Signed-off-by: Pablo Neira Ayuso --- include/conntrackd.h | 1 + include/sync.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/conntrackd.h b/include/conntrackd.h index 8cb520d..3637e2c 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -150,6 +150,7 @@ struct ct_sync_state { struct mcast_sock *mcast_server; /* multicast socket: incoming */ struct mcast_sock *mcast_client; /* multicast socket: outgoing */ + struct queue *tx_queue; struct sync_mode *sync; /* sync mode */ diff --git a/include/sync.h b/include/sync.h index 9a9540c..bced1cc 100644 --- a/include/sync.h +++ b/include/sync.h @@ -18,8 +18,7 @@ struct sync_mode { int (*local)(int fd, int type, void *data); int (*recv)(const struct nethdr *net); void (*send)(struct nethdr *net, struct cache_object *obj); - void (*run)(fd_set *readfds); - int (*register_fds)(struct fds *fds); + void (*xmit)(void); }; extern struct sync_mode sync_alarm; -- cgit v1.2.3