X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=include%2Ftrp_internal.h;h=4d16124f03f12aa85d2c6a877e45d41aef67813d;hb=4d1168fb10d4780098cbd73f58aee88760a751ff;hp=fb2eaef4196cdf92a4bf7be45ab7c03692673bea;hpb=95d2ef50f36b9ca6bcdd76992e2af8ad812e27ed;p=trust_router.git diff --git a/include/trp_internal.h b/include/trp_internal.h index fb2eaef..4d16124 100644 --- a/include/trp_internal.h +++ b/include/trp_internal.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -91,7 +92,8 @@ struct trps_instance { void *cookie; TRP_CONNECTION *conn; /* connections from peers */ TRPC_INSTANCE *trpc; /* connections to peers */ - TR_MQ *mq; + TR_MQ *mq; /* incoming message queue */ + TRP_PTABLE *ptable; /* peer table */ TRP_RTABLE *rtable; /* route table */ }; @@ -163,5 +165,6 @@ TRP_RENTRY *trps_get_route(TRPS_INSTANCE *trps, TR_NAME *comm, TR_NAME *realm, T TRP_RENTRY *trps_get_selected_route(TRPS_INSTANCE *trps, TR_NAME *comm, TR_NAME *realm); TR_NAME *trps_get_next_hop(TRPS_INSTANCE *trps, TR_NAME *comm, TR_NAME *realm); TRP_RC trps_sweep_routes(TRPS_INSTANCE *trps); +TRP_RC trps_add_peer(TRPS_INSTANCE *trps, TRP_PEER *peer); #endif /* TRP_INTERNAL_H */