view include/rtp_alloc_resp.h @ 7:b97024a897c3

add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 May 2024 21:12:15 +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);