bfcp: added bfcp_sock() accessor function, so we can use medianat in application
This commit is contained in:
parent
46280e73a2
commit
baee4163be
2 changed files with 7 additions and 0 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue