00001 #if !defined(_CB_H_) 00002 #define _CB_H_ 00003 00004 #include "internal.h" 00005 00006 typedef struct p2p_callback_s p2p_callback_t; 00007 00008 typedef struct p2p_callback_link_s p2p_callback_link_t; 00009 struct p2p_callback_link_s { 00010 p2p_callback_t *prev; 00011 p2p_callback_t *next; 00012 }; 00013 00014 struct p2p_callback_s { 00015 int port; 00016 int (*handler)(p2p_channel_t *); 00017 p2p_callback_link_t link; 00018 }; 00019 00020 void init_callbacks(); 00021 00022 #endif /* _CB_H_ */