FreeCalypso > hg > themwi-rtp-mgr
annotate include/rtp_alloc_resp.h @ 9:3e88515bcc6d
include/Makefile: install all headers
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 27 May 2024 22:11:44 +0000 |
parents | 60b512a868b4 |
children |
rev | line source |
---|---|
3
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This header file declares the interface to the librtpalloc module |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * that provides a wrapper around the recvmsg(2) call retrieving |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * the response "packet" (structure plus UNIX access rights passing) |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 * from themwi-rtp-mgr. |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 */ |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 #pragma once |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 #include <themwi/rtp/rtp_alloc_if.h> |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 struct rtp_alloc_resp_wrap { |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 struct rtp_alloc_resp resp; |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 unsigned resp_len; |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 int fd_buf[4]; |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 unsigned num_fd; |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 }; |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 int collect_rtpmgr_resp(int ctrl_fd, int recv_flags, |
60b512a868b4
librtpalloc: port of recvmsg wrapper module
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 struct rtp_alloc_resp_wrap *out); |