* transaction control block (local context at requester end)
*/
+struct atp_trans;
+typedef void (*atp_tmo_func)(struct atp_trans *);
+
struct atp_trans {
struct atp_trans_q tr_list; /* trans list */
struct atp_state *tr_queue; /* state data structure */
at_net tr_local_net;
gbuf_t *tr_bdsp; /* bds structure pointer */
unsigned int tr_tmo_delta;
- void (*tr_tmo_func)();
+ atp_tmo_func tr_tmo_func;
struct atp_trans *tr_tmo_next;
struct atp_trans *tr_tmo_prev;
atlock_t tr_lock;
extern struct atp_state* atp_state_data;
extern struct atp_trans_qhead atp_trans_abort; /* aborting trans list */
-extern void atp_req_timeout();
-extern void atp_rcb_timer();
-extern void atp_x_done();
-extern struct atp_rcb *atp_rcb_alloc();
-extern struct atp_trans *atp_trans_alloc();
#endif /* ATP_DECLARE */
/* prototypes */
+void atp_rcb_timer(struct atp_trans *);
+struct atp_rcb *atp_rcb_alloc(struct atp_state *);
+struct atp_trans *atp_trans_alloc(struct atp_state *);
+
void atp_send_req(gref_t *, gbuf_t *);
void atp_drop_req(gref_t *, gbuf_t *);
void atp_send_rsp(gref_t *, gbuf_t *, int);
void atp_rcb_free(struct atp_rcb *);
void atp_send_replies(struct atp_state *, struct atp_rcb *);
void atp_dequeue_atp(struct atp_state *);
-int atp_iocack(struct atp_state *, gbuf_t *);
+void atp_iocack(struct atp_state *, gbuf_t *);
void atp_req_ind(struct atp_state *, gbuf_t *);
-int atp_iocnak(struct atp_state *, gbuf_t *, int);
+void atp_iocnak(struct atp_state *, gbuf_t *, int);
void atp_trp_timer(void *, int);
-void atp_timout(void (*func)(), struct atp_trans *, int);
-void atp_untimout(void (*func)(), struct atp_trans *);
+void atp_timout(atp_tmo_func, struct atp_trans *, int);
+void atp_untimout(atp_tmo_func, struct atp_trans *);
int atp_tid(struct atp_state *);
+void atp_init(void);
+void atp_link(void);
+void atp_unlink(void);
+int atp_input(gbuf_t *);
+void atp_delete_free_clusters(void *);
#endif /* KERNEL_PRIVATE */
#endif /* __APPLE_API_OBSOLETE */