From b9ec2b0c318e05ad5ea886eaec57fadfe07f6277 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Sun, 17 Jan 2010 20:57:21 +0000 Subject: Further work-in-progress. modified: bgpd/bgp_connection.c completed pending queue modified: bgpd/bgp_engine.c TODOs for start/stop modified: bgpd/bgp_msg_write.c ) added send_update and send_eor modified: bgpd/bgp_msg_write.h ) modified: bgpd/bgp_open_state.c fixed free modified: bgpd/bgp_packet.c tidied up peer->work usage modified: bgpd/bgp_session.c ) completed various message handlers modified: bgpd/bgp_session.h ) modified: lib/mqueue.c ) added revoke modified: lib/mqueue.h ) --- lib/mqueue.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/mqueue.h') diff --git a/lib/mqueue.h b/lib/mqueue.h index a4f5d91d..a6edb4d7 100644 --- a/lib/mqueue.h +++ b/lib/mqueue.h @@ -225,12 +225,18 @@ mqueue_enqueue(mqueue_queue mq, mqueue_block mqb, int priority) ; extern mqueue_block mqueue_dequeue(mqueue_queue mq, int wait, void* arg) ; +extern void +mqueue_revoke(mqueue_queue mq, void* arg0) ; + extern int mqueue_done_waiting(mqueue_queue mq, mqueue_thread_signal mtsig) ; extern void mqueue_local_enqueue(mqueue_local_queue lmq, mqueue_block mqb) ; +Inline mqueue_block +mqueue_local_head(mqueue_local_queue lmq) ; + extern mqueue_block mqueue_local_dequeue(mqueue_local_queue lmq) ; @@ -257,6 +263,8 @@ extern void mqb_push_argv_u(mqueue_block mqb, mqb_uint_t u) ; extern void mqb_push_argv_array(mqueue_block mqb, unsigned n, void** array) ; Inline void mqb_dispatch(mqueue_block mqb, mqb_flag_t flag) ; +Inline void mqb_dispatch_action(mqueue_block mqb) ; +Inline void mqb_dispatch_destroy(mqueue_block mqb) ; Inline void* mqb_get_arg0(mqueue_block mqb) ; Inline void* mqb_get_args(mqueue_block mqb) ; @@ -278,6 +286,12 @@ extern void** mqb_pop_argv_array(mqueue_block mqb) ; * The Inline functions. */ +Inline mqueue_block +mqueue_local_head(mqueue_local_queue lmq) +{ + return lmq->head ; +} ; + /* Set operations. */ Inline void -- cgit v1.2.3