view include/rtp_alloc_resp.h @ 10:9499d41fc393 default tip

daemon: change config file name to themwi-rtp-mgr.cfg
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 May 2024 22:47:19 +0000
parents 60b512a868b4
children
line wrap: on
line source

/*
 * This header file declares the interface to the librtpalloc module
 * that provides a wrapper around the recvmsg(2) call retrieving
 * the response "packet" (structure plus UNIX access rights passing)
 * from themwi-rtp-mgr.
 */

#pragma once

#include <themwi/rtp/rtp_alloc_if.h>

struct rtp_alloc_resp_wrap {
	struct rtp_alloc_resp resp;
	unsigned	resp_len;
	int		fd_buf[4];
	unsigned	num_fd;
};

int collect_rtpmgr_resp(int ctrl_fd, int recv_flags,
			struct rtp_alloc_resp_wrap *out);