diff options
author | George Joseph <george.joseph@fairview5.com> | 2015-12-28 18:18:01 -0700 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2015-12-30 20:22:35 -0700 |
commit | 20b8474f20fc387d5b355ee81b751e4988fc28d7 (patch) | |
tree | ce799fba35960dcd69504c00207c12ccce58e959 /main/pbx_private.h | |
parent | 47d508e9115042d93bf5a7dab025bceecaabd2e1 (diff) |
main/pbx: Move pbx_builtin dialplan applications to pbx_builtins.c
We joked about splitting pbx.c into multiple files but this first step was
fairly easy. All of the pbx_builtin dialplan applications have been moved
into pbx_builtins.c and a new pbx_private.h file was added. load_pbx_builtins()
is called by asterisk.c just after load_pbx().
A few functions were renamed and are cross-exposed between the 2 source files.
Change-Id: I87066be3dbf7f5822942ac1449d98cc43fc7561a
Diffstat (limited to 'main/pbx_private.h')
-rw-r--r-- | main/pbx_private.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/pbx_private.h b/main/pbx_private.h new file mode 100644 index 000000000..e1711796c --- /dev/null +++ b/main/pbx_private.h @@ -0,0 +1,37 @@ +/* + * Asterisk -- An open source telephony toolkit. + * + * Copyright (C) 2015 Fairview 5 Engineering, LLC + * + * George Joseph <george.joseph@fairview5.com> + * + * See http://www.asterisk.org for more information about + * the Asterisk project. Please do not directly contact + * any of the maintainers of this project for assistance; + * the project provides a web site, mailing lists and IRC + * channels for your use. + * + * This program is free software, distributed under the terms of + * the GNU General Public License Version 2. See the LICENSE file + * at the top of the source tree. + */ + +/*! \file + * \brief Private include file for pbx + */ + +#ifndef _PBX_PRIVATE_H +#define _PBX_PRIVATE_H + +/*! pbx.c functions needed by pbx_builtins.c */ +int raise_exception(struct ast_channel *chan, const char *reason, int priority); +void wait_for_hangup(struct ast_channel *chan, const void *data); +void set_ext_pri(struct ast_channel *c, const char *exten, int pri); + +/*! pbx_builtins.c functions needed by pbx.c */ +int indicate_congestion(struct ast_channel *, const char *); +int indicate_busy(struct ast_channel *, const char *); + +#define VAR_BUF_SIZE 4096 + +#endif /* _PBX_PRIVATE_H */ |