1f382ecc21f1714f1ae9516ad204e0c8cdfcad58
[trust_router.git] / include / tr_trp.h
1 #ifndef TR_TRP_H
2 #define TR_TRP_H
3
4 #include <talloc.h>
5
6 #include <trp_internal.h>
7 #include <tr_config.h>
8 #include <tr_event.h>
9
10 /* Data for a TRP peer */
11 typedef struct tr_trp_peer {
12   TRPS_INSTANCE *trps; /* incoming connection, may be null */
13   TRPC_INSTANCE *trpc; /* outgoing connection, may be null */
14 } TR_TRP_PEER;
15
16 /* prototypes */
17 int tr_trps_event_init(struct event_base *base, TRPS_INSTANCE *trps, TR_CFG_MGR *cfg_mgr,
18                        struct tr_socket_event *trps_ev);
19
20 #endif /* TR_TRP_H */