bfcp: added bfcp_sock() accessor function, so we can use medianat in application

This commit is contained in:
Alfred E. Heggestad 2013-03-25 21:53:48 +00:00
parent 46280e73a2
commit baee4163be
2 changed files with 7 additions and 0 deletions

View file

@ -260,6 +260,7 @@ const char *bfcp_prim_name(enum bfcp_prim prim);
/* conn */
int bfcp_listen(struct bfcp_conn **bcp, enum bfcp_transp tp, struct sa *laddr,
bfcp_recv_h *recvh, void *arg);
void *bfcp_sock(const struct bfcp_conn *bc);
/* request */

View file

@ -146,3 +146,9 @@ int bfcp_send(struct bfcp_conn *bc, const struct sa *dst, struct mbuf *mb)
return ENOSYS;
}
}
void *bfcp_sock(const struct bfcp_conn *bc)
{
return bc ? bc->us : NULL;
}