Skip to content

Commit baee416

Browse files
committed
bfcp: added bfcp_sock() accessor function, so we can use medianat in application
1 parent 46280e7 commit baee416

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/re_bfcp.h

+1
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ const char *bfcp_prim_name(enum bfcp_prim prim);
260260
/* conn */
261261
int bfcp_listen(struct bfcp_conn **bcp, enum bfcp_transp tp, struct sa *laddr,
262262
bfcp_recv_h *recvh, void *arg);
263+
void *bfcp_sock(const struct bfcp_conn *bc);
263264

264265

265266
/* request */

src/bfcp/conn.c

+6
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,9 @@ int bfcp_send(struct bfcp_conn *bc, const struct sa *dst, struct mbuf *mb)
146146
return ENOSYS;
147147
}
148148
}
149+
150+
151+
void *bfcp_sock(const struct bfcp_conn *bc)
152+
{
153+
return bc ? bc->us : NULL;
154+
}

0 commit comments

Comments
 (0)