Asterisk - The Open Source Telephony Project GIT-master-7e7a603
pbx_private.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2015 Fairview 5 Engineering, LLC
5 *
6 * George Joseph <george.joseph@fairview5.com>
7 *
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
13 *
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
17 */
18
19/*! \file
20 * \brief Private include file for pbx
21 */
22
23#ifndef _PBX_PRIVATE_H
24#define _PBX_PRIVATE_H
25
26/*! pbx.c functions needed by pbx_builtins.c */
27int raise_exception(struct ast_channel *chan, const char *reason, int priority);
28void wait_for_hangup(struct ast_channel *chan, const void *data);
29void set_ext_pri(struct ast_channel *c, const char *exten, int pri);
30
31/*! pbx.c function needed by pbx_app.c */
33
34/*! pbx_ignorepat.c */
35struct ast_ignorepat;
36AST_VECTOR(ast_ignorepats, struct ast_ignorepat *);
37
38struct ast_ignorepat *ignorepat_alloc(const char *value, const char *registrar);
39void ignorepat_free(struct ast_ignorepat *ip);
40
41/*! pbx_includes.c */
42struct ast_include;
43AST_VECTOR(ast_includes, struct ast_include *);
44
45/*! Allocate and initialize an ast_include. */
46struct ast_include *include_alloc(const char *value, const char *registrar);
47/*! Free an ast_include and associated data. */
48void include_free(struct ast_include *inc);
49int include_valid(const struct ast_include *inc);
50const char *include_rname(const struct ast_include *inc);
51
52/*! pbx_sw.c */
53struct ast_sw;
54AST_VECTOR(ast_sws, struct ast_sw *);
55struct ast_sw *sw_alloc(const char *value, const char *data, int eval, const char *registrar);
56void sw_free(struct ast_sw *sw);
57
58/*! pbx_builtins.c functions needed by pbx.c */
59int indicate_congestion(struct ast_channel *, const char *);
60int indicate_busy(struct ast_channel *, const char *);
61
62/*! pbx_switch.c functions needed by pbx.c */
63struct ast_switch *pbx_findswitch(const char *sw);
64
65/*! pbx_app.c functions needed by pbx.c */
66const char *app_name(struct ast_app *app);
67
68#define VAR_BUF_SIZE 4096
69
70#endif /* _PBX_PRIVATE_H */
static const char app[]
Definition: app_adsiprog.c:56
static int priority
int indicate_busy(struct ast_channel *, const char *)
Definition: pbx_builtins.c:757
int indicate_congestion(struct ast_channel *, const char *)
Definition: pbx_builtins.c:775
static char * registrar
Definition: pbx_ael.c:78
void unreference_cached_app(struct ast_app *app)
Definition: pbx.c:6130
void include_free(struct ast_include *inc)
Definition: pbx_include.c:106
int include_valid(const struct ast_include *inc)
Definition: pbx_include.c:65
struct ast_include * include_alloc(const char *value, const char *registrar)
Definition: pbx_include.c:74
void wait_for_hangup(struct ast_channel *chan, const void *data)
Definition: pbx.c:8228
struct ast_switch * pbx_findswitch(const char *sw)
Definition: pbx_switch.c:40
const char * include_rname(const struct ast_include *inc)
Definition: pbx_include.c:55
const char * app_name(struct ast_app *app)
Definition: pbx_app.c:463
int raise_exception(struct ast_channel *chan, const char *reason, int priority)
Definition: pbx.c:2806
struct ast_sw * sw_alloc(const char *value, const char *data, int eval, const char *registrar)
Definition: pbx_sw.c:68
AST_VECTOR(ast_ignorepats, struct ast_ignorepat *)
void ignorepat_free(struct ast_ignorepat *ip)
Definition: pbx_ignorepat.c:77
void sw_free(struct ast_sw *sw)
Definition: pbx_sw.c:101
struct ast_ignorepat * ignorepat_alloc(const char *value, const char *registrar)
Definition: pbx_ignorepat.c:52
void set_ext_pri(struct ast_channel *c, const char *exten, int pri)
Definition: pbx.c:4264
ast_app: A registered application
Definition: pbx_app.c:45
Main Channel structure associated with a channel.
ast_ignorepat: Ignore patterns in dial plan
Definition: pbx_ignorepat.c:37
ast_include: include= support in extensions.conf
Definition: pbx_include.c:37
ast_sw: Switch statement in extensions.conf
Definition: pbx_sw.c:37
int eval
Definition: pbx_sw.c:43
const char * data
Definition: pbx_sw.c:42
int value
Definition: syslog.c:37
static struct test_val c