# HG changeset patch # User Mychaela Falconia # Date 1716834939 0 # Node ID 560a3765ab30a0da2835f5ec36420b0bdd127b39 # Parent 9e7e9ba22e424cd0b178c1cf154df4cb40e26546 include: hg mv rtp_alloc.h rtp_alloc_if.h The reason for this rename is that we anticipate having additional rtp_alloc_*.h header files for client library functions that work with RTP allocation via themwi-rtp-mgr. diff -r 9e7e9ba22e42 -r 560a3765ab30 include/Makefile --- a/include/Makefile Mon May 27 09:10:27 2024 +0000 +++ b/include/Makefile Mon May 27 18:35:39 2024 +0000 @@ -1,4 +1,4 @@ -FILES= pstn_defs.h rtp_alloc.h rtp_defs.h +FILES= pstn_defs.h rtp_alloc_if.h rtp_defs.h include ../config.defs diff -r 9e7e9ba22e42 -r 560a3765ab30 include/rtp_alloc.h --- a/include/rtp_alloc.h Mon May 27 09:10:27 2024 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -/* - * This header file defines the ad hoc control interface - * to themwi-rtp-mgr over a dedicated local socket. - */ - -#pragma once - -struct rtp_alloc_req { - uint32_t transact_ref; - uint32_t ep_type; -}; - -#define RTP_ALLOC_DO_GSM1 1 -#define RTP_ALLOC_DO_PSTN 2 -#define RTP_ALLOC_DO_GSM2 4 - -#define RTP_ALLOC_TYPE_GSM RTP_ALLOC_DO_GSM1 -#define RTP_ALLOC_TYPE_PSTN RTP_ALLOC_DO_PSTN -#define RTP_ALLOC_TYPE_GSM2PSTN (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_PSTN) -#define RTP_ALLOC_TYPE_GSM2GSM (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_GSM2) - -struct rtp_alloc_resp { - uint32_t transact_ref; - uint32_t res; - struct sockaddr_storage gsm_addr; - struct sockaddr_storage pstn_addr; /* also used for 2nd GSM */ -}; - -#define RTP_ALLOC_OK 0 -#define RTP_ALLOC_ERR_PARAM 1 -#define RTP_ALLOC_ERR_RSRC 2 diff -r 9e7e9ba22e42 -r 560a3765ab30 include/rtp_alloc_if.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/rtp_alloc_if.h Mon May 27 18:35:39 2024 +0000 @@ -0,0 +1,31 @@ +/* + * This header file defines the ad hoc control interface + * to themwi-rtp-mgr over a dedicated local socket. + */ + +#pragma once + +struct rtp_alloc_req { + uint32_t transact_ref; + uint32_t ep_type; +}; + +#define RTP_ALLOC_DO_GSM1 1 +#define RTP_ALLOC_DO_PSTN 2 +#define RTP_ALLOC_DO_GSM2 4 + +#define RTP_ALLOC_TYPE_GSM RTP_ALLOC_DO_GSM1 +#define RTP_ALLOC_TYPE_PSTN RTP_ALLOC_DO_PSTN +#define RTP_ALLOC_TYPE_GSM2PSTN (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_PSTN) +#define RTP_ALLOC_TYPE_GSM2GSM (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_GSM2) + +struct rtp_alloc_resp { + uint32_t transact_ref; + uint32_t res; + struct sockaddr_storage gsm_addr; + struct sockaddr_storage pstn_addr; /* also used for 2nd GSM */ +}; + +#define RTP_ALLOC_OK 0 +#define RTP_ALLOC_ERR_PARAM 1 +#define RTP_ALLOC_ERR_RSRC 2