FreeCalypso > hg > themwi-rtp-mgr
annotate include/rtp_alloc_if.h @ 1:560a3765ab30
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.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 27 May 2024 18:35:39 +0000 |
parents | include/rtp_alloc.h@9e7e9ba22e42 |
children | 764bbf72392f |
rev | line source |
---|---|
0
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This header file defines the ad hoc control interface |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * to themwi-rtp-mgr over a dedicated local socket. |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */ |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #pragma once |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 struct rtp_alloc_req { |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 uint32_t transact_ref; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 uint32_t ep_type; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 }; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 #define RTP_ALLOC_DO_GSM1 1 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 #define RTP_ALLOC_DO_PSTN 2 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 #define RTP_ALLOC_DO_GSM2 4 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 #define RTP_ALLOC_TYPE_GSM RTP_ALLOC_DO_GSM1 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 #define RTP_ALLOC_TYPE_PSTN RTP_ALLOC_DO_PSTN |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 #define RTP_ALLOC_TYPE_GSM2PSTN (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_PSTN) |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 #define RTP_ALLOC_TYPE_GSM2GSM (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_GSM2) |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 struct rtp_alloc_resp { |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 uint32_t transact_ref; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 uint32_t res; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 struct sockaddr_storage gsm_addr; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 struct sockaddr_storage pstn_addr; /* also used for 2nd GSM */ |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 }; |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 #define RTP_ALLOC_OK 0 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 #define RTP_ALLOC_ERR_PARAM 1 |
9e7e9ba22e42
starting project with public header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 #define RTP_ALLOC_ERR_RSRC 2 |