comparison include/rtp_alloc_resp.h @ 3:60b512a868b4

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