RTS API Documentation  1.10.11
switch_apr_pvt.h
Go to the documentation of this file.
1 /*
2  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
3  * Copyright (C) 2005-2021, Anthony Minessale II <anthm@freeswitch.org>
4  *
5  * Version: MPL 1.1
6  *
7  * The contents of this file are subject to the Mozilla Public License Version
8  * 1.1 (the "License"); you may not use this file except in compliance with
9  * the License. You may obtain a copy of the License at
10  * http://www.mozilla.org/MPL/
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
18  *
19  * The Initial Developer of the Original Code is
20  * Anthony Minessale II <anthm@freeswitch.org>
21  * Portions created by the Initial Developer are Copyright (C)
22  * the Initial Developer. All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  * Anthony Minessale II <anthm@freeswitch.org>
27  * Andrey Volk <andywolk@gmail.com>
28  *
29  *
30  * switch_apr_pvt.h - APR
31  *
32  */
33 
34 #ifndef __SWITCH_APR_PVT_H__
35 #define __SWITCH_APR_PVT_H__
36 
37 /* for fspr_pool_create and fspr_pool_destroy */
38 /* functions only used in this file so not exposed */
39 #include <fspr_pools.h>
40 
41 /* for fspr_hash_make, fspr_hash_pool_get, fspr_hash_set */
42 /* functions only used in this file so not exposed */
43 #include <fspr_hash.h>
44 
45 /* for fspr_pvsprintf */
46 /* function only used in this file so not exposed */
47 #include <fspr_strings.h>
48 
49 /* for fspr_initialize and fspr_terminate */
50 /* function only used in this file so not exposed */
51 #include <fspr_general.h>
52 
53 #include <fspr_portable.h>
54 
56 fspr_status_t switch_apr_queue_create(switch_apr_queue_t **q, unsigned int queue_capacity, fspr_pool_t *a);
57 fspr_status_t switch_apr_queue_push(switch_apr_queue_t *queue, void *data);
58 fspr_status_t switch_apr_queue_trypush(switch_apr_queue_t *queue, void *data);
59 unsigned int switch_apr_queue_size(switch_apr_queue_t *queue);
60 fspr_status_t switch_apr_queue_pop(switch_apr_queue_t *queue, void **data);
61 fspr_status_t switch_apr_queue_pop_timeout(switch_apr_queue_t *queue, void **data, fspr_interval_time_t timeout);
62 fspr_status_t switch_apr_queue_trypop(switch_apr_queue_t *queue, void **data);
64 fspr_status_t switch_apr_queue_term(switch_apr_queue_t *queue);
65 
66 #endif // __SWITCH_APR_PVT_H__
67 
68 /* For Emacs:
69  * Local Variables:
70  * mode:c
71  * indent-tabs-mode:t
72  * tab-width:4
73  * c-basic-offset:4
74  * End:
75  * For VIM:
76  * vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
77  */
fspr_status_t switch_apr_queue_trypop(switch_apr_queue_t *queue, void **data)
fspr_status_t switch_apr_queue_term(switch_apr_queue_t *queue)
fspr_status_t switch_apr_queue_push(switch_apr_queue_t *queue, void *data)
fspr_status_t switch_apr_queue_pop(switch_apr_queue_t *queue, void **data)
fspr_status_t switch_apr_queue_trypush(switch_apr_queue_t *queue, void *data)
fspr_status_t switch_apr_queue_pop_timeout(switch_apr_queue_t *queue, void **data, fspr_interval_time_t timeout)
fspr_status_t switch_apr_queue_interrupt_all(switch_apr_queue_t *queue)
unsigned int switch_apr_queue_size(switch_apr_queue_t *queue)
fspr_status_t switch_apr_queue_create(switch_apr_queue_t **q, unsigned int queue_capacity, fspr_pool_t *a)