Add support for ICE/STUN/TURN in res_rtp_asterisk and chan_sip.
[asterisk/asterisk.git] / res / pjproject / pjlib / src / pj / symbols.c
1 /* $Id$ */
2 /* 
3  * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4  * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
19  */
20 #include <pjlib.h>
21
22 /*
23  * addr_resolv.h
24  */
25 PJ_EXPORT_SYMBOL(pj_gethostbyname)
26
27 /*
28  * array.h
29  */
30 PJ_EXPORT_SYMBOL(pj_array_insert)
31 PJ_EXPORT_SYMBOL(pj_array_erase)
32 PJ_EXPORT_SYMBOL(pj_array_find)
33
34 /*
35  * config.h
36  */
37 PJ_EXPORT_SYMBOL(pj_dump_config)
38         
39 /*
40  * errno.h
41  */
42 PJ_EXPORT_SYMBOL(pj_get_os_error)
43 PJ_EXPORT_SYMBOL(pj_set_os_error)
44 PJ_EXPORT_SYMBOL(pj_get_netos_error)
45 PJ_EXPORT_SYMBOL(pj_set_netos_error)
46 PJ_EXPORT_SYMBOL(pj_strerror)
47
48 /*
49  * except.h
50  */
51 PJ_EXPORT_SYMBOL(pj_throw_exception_)
52 PJ_EXPORT_SYMBOL(pj_push_exception_handler_)
53 PJ_EXPORT_SYMBOL(pj_pop_exception_handler_)
54 PJ_EXPORT_SYMBOL(pj_setjmp)
55 PJ_EXPORT_SYMBOL(pj_longjmp)
56 PJ_EXPORT_SYMBOL(pj_exception_id_alloc)
57 PJ_EXPORT_SYMBOL(pj_exception_id_free)
58 PJ_EXPORT_SYMBOL(pj_exception_id_name)
59
60
61 /*
62  * fifobuf.h
63  */
64 PJ_EXPORT_SYMBOL(pj_fifobuf_init)
65 PJ_EXPORT_SYMBOL(pj_fifobuf_max_size)
66 PJ_EXPORT_SYMBOL(pj_fifobuf_alloc)
67 PJ_EXPORT_SYMBOL(pj_fifobuf_unalloc)
68 PJ_EXPORT_SYMBOL(pj_fifobuf_free)
69
70 /*
71  * guid.h
72  */
73 PJ_EXPORT_SYMBOL(pj_generate_unique_string)
74 PJ_EXPORT_SYMBOL(pj_create_unique_string)
75
76 /*
77  * hash.h
78  */
79 PJ_EXPORT_SYMBOL(pj_hash_calc)
80 PJ_EXPORT_SYMBOL(pj_hash_create)
81 PJ_EXPORT_SYMBOL(pj_hash_get)
82 PJ_EXPORT_SYMBOL(pj_hash_set)
83 PJ_EXPORT_SYMBOL(pj_hash_count)
84 PJ_EXPORT_SYMBOL(pj_hash_first)
85 PJ_EXPORT_SYMBOL(pj_hash_next)
86 PJ_EXPORT_SYMBOL(pj_hash_this)
87
88 /*
89  * ioqueue.h
90  */
91 PJ_EXPORT_SYMBOL(pj_ioqueue_create)
92 PJ_EXPORT_SYMBOL(pj_ioqueue_destroy)
93 PJ_EXPORT_SYMBOL(pj_ioqueue_set_lock)
94 PJ_EXPORT_SYMBOL(pj_ioqueue_register_sock)
95 PJ_EXPORT_SYMBOL(pj_ioqueue_unregister)
96 PJ_EXPORT_SYMBOL(pj_ioqueue_get_user_data)
97 PJ_EXPORT_SYMBOL(pj_ioqueue_poll)
98 PJ_EXPORT_SYMBOL(pj_ioqueue_read)
99 PJ_EXPORT_SYMBOL(pj_ioqueue_recv)
100 PJ_EXPORT_SYMBOL(pj_ioqueue_recvfrom)
101 PJ_EXPORT_SYMBOL(pj_ioqueue_write)
102 PJ_EXPORT_SYMBOL(pj_ioqueue_send)
103 PJ_EXPORT_SYMBOL(pj_ioqueue_sendto)
104 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP != 0
105 PJ_EXPORT_SYMBOL(pj_ioqueue_accept)
106 PJ_EXPORT_SYMBOL(pj_ioqueue_connect)
107 #endif
108
109 /*
110  * list.h
111  */
112 PJ_EXPORT_SYMBOL(pj_list_insert_before)
113 PJ_EXPORT_SYMBOL(pj_list_insert_nodes_before)
114 PJ_EXPORT_SYMBOL(pj_list_insert_after)
115 PJ_EXPORT_SYMBOL(pj_list_insert_nodes_after)
116 PJ_EXPORT_SYMBOL(pj_list_merge_first)
117 PJ_EXPORT_SYMBOL(pj_list_merge_last)
118 PJ_EXPORT_SYMBOL(pj_list_erase)
119 PJ_EXPORT_SYMBOL(pj_list_find_node)
120 PJ_EXPORT_SYMBOL(pj_list_search)
121
122
123 /*
124  * log.h
125  */
126 PJ_EXPORT_SYMBOL(pj_log_write)
127 #if PJ_LOG_MAX_LEVEL >= 1
128 PJ_EXPORT_SYMBOL(pj_log_set_log_func)
129 PJ_EXPORT_SYMBOL(pj_log_get_log_func)
130 PJ_EXPORT_SYMBOL(pj_log_set_level)
131 PJ_EXPORT_SYMBOL(pj_log_get_level)
132 PJ_EXPORT_SYMBOL(pj_log_set_decor)
133 PJ_EXPORT_SYMBOL(pj_log_get_decor)
134 PJ_EXPORT_SYMBOL(pj_log_1)
135 #endif
136 #if PJ_LOG_MAX_LEVEL >= 2
137 PJ_EXPORT_SYMBOL(pj_log_2)
138 #endif
139 #if PJ_LOG_MAX_LEVEL >= 3
140 PJ_EXPORT_SYMBOL(pj_log_3)
141 #endif
142 #if PJ_LOG_MAX_LEVEL >= 4
143 PJ_EXPORT_SYMBOL(pj_log_4)
144 #endif
145 #if PJ_LOG_MAX_LEVEL >= 5
146 PJ_EXPORT_SYMBOL(pj_log_5)
147 #endif
148 #if PJ_LOG_MAX_LEVEL >= 6
149 PJ_EXPORT_SYMBOL(pj_log_6)
150 #endif
151
152 /*
153  * os.h
154  */
155 PJ_EXPORT_SYMBOL(pj_init)
156 PJ_EXPORT_SYMBOL(pj_getpid)
157 PJ_EXPORT_SYMBOL(pj_thread_register)
158 PJ_EXPORT_SYMBOL(pj_thread_create)
159 PJ_EXPORT_SYMBOL(pj_thread_get_name)
160 PJ_EXPORT_SYMBOL(pj_thread_resume)
161 PJ_EXPORT_SYMBOL(pj_thread_this)
162 PJ_EXPORT_SYMBOL(pj_thread_join)
163 PJ_EXPORT_SYMBOL(pj_thread_destroy)
164 PJ_EXPORT_SYMBOL(pj_thread_sleep)
165 #if defined(PJ_OS_HAS_CHECK_STACK) && PJ_OS_HAS_CHECK_STACK != 0
166 PJ_EXPORT_SYMBOL(pj_thread_check_stack)
167 PJ_EXPORT_SYMBOL(pj_thread_get_stack_max_usage)
168 PJ_EXPORT_SYMBOL(pj_thread_get_stack_info)
169 #endif
170 PJ_EXPORT_SYMBOL(pj_atomic_create)
171 PJ_EXPORT_SYMBOL(pj_atomic_destroy)
172 PJ_EXPORT_SYMBOL(pj_atomic_set)
173 PJ_EXPORT_SYMBOL(pj_atomic_get)
174 PJ_EXPORT_SYMBOL(pj_atomic_inc)
175 PJ_EXPORT_SYMBOL(pj_atomic_dec)
176 PJ_EXPORT_SYMBOL(pj_thread_local_alloc)
177 PJ_EXPORT_SYMBOL(pj_thread_local_free)
178 PJ_EXPORT_SYMBOL(pj_thread_local_set)
179 PJ_EXPORT_SYMBOL(pj_thread_local_get)
180 PJ_EXPORT_SYMBOL(pj_enter_critical_section)
181 PJ_EXPORT_SYMBOL(pj_leave_critical_section)
182 PJ_EXPORT_SYMBOL(pj_mutex_create)
183 PJ_EXPORT_SYMBOL(pj_mutex_lock)
184 PJ_EXPORT_SYMBOL(pj_mutex_unlock)
185 PJ_EXPORT_SYMBOL(pj_mutex_trylock)
186 PJ_EXPORT_SYMBOL(pj_mutex_destroy)
187 #if defined(PJ_DEBUG) && PJ_DEBUG != 0
188 PJ_EXPORT_SYMBOL(pj_mutex_is_locked)
189 #endif
190 #if defined(PJ_HAS_SEMAPHORE) && PJ_HAS_SEMAPHORE != 0
191 PJ_EXPORT_SYMBOL(pj_sem_create)
192 PJ_EXPORT_SYMBOL(pj_sem_wait)
193 PJ_EXPORT_SYMBOL(pj_sem_trywait)
194 PJ_EXPORT_SYMBOL(pj_sem_post)
195 PJ_EXPORT_SYMBOL(pj_sem_destroy)
196 #endif
197 PJ_EXPORT_SYMBOL(pj_gettimeofday)
198 PJ_EXPORT_SYMBOL(pj_time_decode)
199 #if defined(PJ_HAS_HIGH_RES_TIMER) && PJ_HAS_HIGH_RES_TIMER != 0
200 PJ_EXPORT_SYMBOL(pj_gettickcount)
201 PJ_EXPORT_SYMBOL(pj_get_timestamp)
202 PJ_EXPORT_SYMBOL(pj_get_timestamp_freq)
203 PJ_EXPORT_SYMBOL(pj_elapsed_time)
204 PJ_EXPORT_SYMBOL(pj_elapsed_usec)
205 PJ_EXPORT_SYMBOL(pj_elapsed_nanosec)
206 PJ_EXPORT_SYMBOL(pj_elapsed_cycle)
207 #endif
208
209         
210 /*
211  * pool.h
212  */
213 PJ_EXPORT_SYMBOL(pj_pool_create)
214 PJ_EXPORT_SYMBOL(pj_pool_release)
215 PJ_EXPORT_SYMBOL(pj_pool_getobjname)
216 PJ_EXPORT_SYMBOL(pj_pool_reset)
217 PJ_EXPORT_SYMBOL(pj_pool_get_capacity)
218 PJ_EXPORT_SYMBOL(pj_pool_get_used_size)
219 PJ_EXPORT_SYMBOL(pj_pool_alloc)
220 PJ_EXPORT_SYMBOL(pj_pool_calloc)
221 PJ_EXPORT_SYMBOL(pj_pool_factory_default_policy)
222 PJ_EXPORT_SYMBOL(pj_pool_create_int)
223 PJ_EXPORT_SYMBOL(pj_pool_init_int)
224 PJ_EXPORT_SYMBOL(pj_pool_destroy_int)
225 PJ_EXPORT_SYMBOL(pj_caching_pool_init)
226 PJ_EXPORT_SYMBOL(pj_caching_pool_destroy)
227
228 /*
229  * rand.h
230  */
231 PJ_EXPORT_SYMBOL(pj_rand)
232 PJ_EXPORT_SYMBOL(pj_srand)
233
234 /*
235  * rbtree.h
236  */
237 PJ_EXPORT_SYMBOL(pj_rbtree_init)
238 PJ_EXPORT_SYMBOL(pj_rbtree_first)
239 PJ_EXPORT_SYMBOL(pj_rbtree_last)
240 PJ_EXPORT_SYMBOL(pj_rbtree_next)
241 PJ_EXPORT_SYMBOL(pj_rbtree_prev)
242 PJ_EXPORT_SYMBOL(pj_rbtree_insert)
243 PJ_EXPORT_SYMBOL(pj_rbtree_find)
244 PJ_EXPORT_SYMBOL(pj_rbtree_erase)
245 PJ_EXPORT_SYMBOL(pj_rbtree_max_height)
246 PJ_EXPORT_SYMBOL(pj_rbtree_min_height)
247
248 /*
249  * sock.h
250  */
251 PJ_EXPORT_SYMBOL(PJ_AF_UNIX)
252 PJ_EXPORT_SYMBOL(PJ_AF_INET)
253 PJ_EXPORT_SYMBOL(PJ_AF_INET6)
254 PJ_EXPORT_SYMBOL(PJ_AF_PACKET)
255 PJ_EXPORT_SYMBOL(PJ_AF_IRDA)
256 PJ_EXPORT_SYMBOL(PJ_SOCK_STREAM)
257 PJ_EXPORT_SYMBOL(PJ_SOCK_DGRAM)
258 PJ_EXPORT_SYMBOL(PJ_SOCK_RAW)
259 PJ_EXPORT_SYMBOL(PJ_SOCK_RDM)
260 PJ_EXPORT_SYMBOL(PJ_SOL_SOCKET)
261 PJ_EXPORT_SYMBOL(PJ_SOL_IP)
262 PJ_EXPORT_SYMBOL(PJ_SOL_TCP)
263 PJ_EXPORT_SYMBOL(PJ_SOL_UDP)
264 PJ_EXPORT_SYMBOL(PJ_SOL_IPV6)
265 PJ_EXPORT_SYMBOL(pj_ntohs)
266 PJ_EXPORT_SYMBOL(pj_htons)
267 PJ_EXPORT_SYMBOL(pj_ntohl)
268 PJ_EXPORT_SYMBOL(pj_htonl)
269 PJ_EXPORT_SYMBOL(pj_inet_ntoa)
270 PJ_EXPORT_SYMBOL(pj_inet_aton)
271 PJ_EXPORT_SYMBOL(pj_inet_addr)
272 PJ_EXPORT_SYMBOL(pj_sockaddr_in_set_str_addr)
273 PJ_EXPORT_SYMBOL(pj_sockaddr_in_init)
274 PJ_EXPORT_SYMBOL(pj_gethostname)
275 PJ_EXPORT_SYMBOL(pj_gethostaddr)
276 PJ_EXPORT_SYMBOL(pj_sock_socket)
277 PJ_EXPORT_SYMBOL(pj_sock_close)
278 PJ_EXPORT_SYMBOL(pj_sock_bind)
279 PJ_EXPORT_SYMBOL(pj_sock_bind_in)
280 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP != 0
281 PJ_EXPORT_SYMBOL(pj_sock_listen)
282 PJ_EXPORT_SYMBOL(pj_sock_accept)
283 PJ_EXPORT_SYMBOL(pj_sock_shutdown)
284 #endif
285 PJ_EXPORT_SYMBOL(pj_sock_connect)
286 PJ_EXPORT_SYMBOL(pj_sock_getpeername)
287 PJ_EXPORT_SYMBOL(pj_sock_getsockname)
288 PJ_EXPORT_SYMBOL(pj_sock_getsockopt)
289 PJ_EXPORT_SYMBOL(pj_sock_setsockopt)
290 PJ_EXPORT_SYMBOL(pj_sock_recv)
291 PJ_EXPORT_SYMBOL(pj_sock_recvfrom)
292 PJ_EXPORT_SYMBOL(pj_sock_send)
293 PJ_EXPORT_SYMBOL(pj_sock_sendto)
294
295 /*
296  * sock_select.h
297  */
298 PJ_EXPORT_SYMBOL(PJ_FD_ZERO)
299 PJ_EXPORT_SYMBOL(PJ_FD_SET)
300 PJ_EXPORT_SYMBOL(PJ_FD_CLR)
301 PJ_EXPORT_SYMBOL(PJ_FD_ISSET)
302 PJ_EXPORT_SYMBOL(pj_sock_select)
303
304 /*
305  * string.h
306  */
307 PJ_EXPORT_SYMBOL(pj_str)
308 PJ_EXPORT_SYMBOL(pj_strassign)
309 PJ_EXPORT_SYMBOL(pj_strcpy)
310 PJ_EXPORT_SYMBOL(pj_strcpy2)
311 PJ_EXPORT_SYMBOL(pj_strdup)
312 PJ_EXPORT_SYMBOL(pj_strdup_with_null)
313 PJ_EXPORT_SYMBOL(pj_strdup2)
314 PJ_EXPORT_SYMBOL(pj_strdup3)
315 PJ_EXPORT_SYMBOL(pj_strcmp)
316 PJ_EXPORT_SYMBOL(pj_strcmp2)
317 PJ_EXPORT_SYMBOL(pj_strncmp)
318 PJ_EXPORT_SYMBOL(pj_strncmp2)
319 PJ_EXPORT_SYMBOL(pj_stricmp)
320 PJ_EXPORT_SYMBOL(pj_stricmp2)
321 PJ_EXPORT_SYMBOL(pj_strnicmp)
322 PJ_EXPORT_SYMBOL(pj_strnicmp2)
323 PJ_EXPORT_SYMBOL(pj_strcat)
324 PJ_EXPORT_SYMBOL(pj_strltrim)
325 PJ_EXPORT_SYMBOL(pj_strrtrim)
326 PJ_EXPORT_SYMBOL(pj_strtrim)
327 PJ_EXPORT_SYMBOL(pj_create_random_string)
328 PJ_EXPORT_SYMBOL(pj_strtoul)
329 PJ_EXPORT_SYMBOL(pj_utoa)
330 PJ_EXPORT_SYMBOL(pj_utoa_pad)
331
332 /*
333  * timer.h
334  */
335 PJ_EXPORT_SYMBOL(pj_timer_heap_mem_size)
336 PJ_EXPORT_SYMBOL(pj_timer_heap_create)
337 PJ_EXPORT_SYMBOL(pj_timer_entry_init)
338 PJ_EXPORT_SYMBOL(pj_timer_heap_schedule)
339 PJ_EXPORT_SYMBOL(pj_timer_heap_cancel)
340 PJ_EXPORT_SYMBOL(pj_timer_heap_count)
341 PJ_EXPORT_SYMBOL(pj_timer_heap_earliest_time)
342 PJ_EXPORT_SYMBOL(pj_timer_heap_poll)
343
344 /*
345  * types.h
346  */
347 PJ_EXPORT_SYMBOL(pj_time_val_normalize)
348