diff options
author | Corey Farrell <git@cfware.com> | 2018-03-21 23:00:56 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2018-03-22 00:33:12 -0400 |
commit | a6d58c518a2d1b92eba925ea75b7896461f30643 (patch) | |
tree | 0361e50e89dd400469b855c6f620f23f410917a6 /include | |
parent | fa892d8dfd789af2e93f33ebf6686104dd84ad4a (diff) |
core: Create main/options.c.
This creates a separate source to 'own' symbols related to options.h and
paths.h. This significantly reduces the number of exports created by
main/asterisk.o. This change is required to eventually be able to
link unmodified Asterisk sources to utilities and/or stand-alone tests.
ASTERISK~26245
Change-Id: I5cf184f4757f9363b80c9e678bdc35c477122380
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/_private.h | 5 | ||||
-rw-r--r-- | include/asterisk/paths.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/_private.h b/include/asterisk/_private.h index 431f96108..d19c58967 100644 --- a/include/asterisk/_private.h +++ b/include/asterisk/_private.h @@ -15,6 +15,11 @@ #ifndef _ASTERISK__PRIVATE_H #define _ASTERISK__PRIVATE_H +/* Load settings from asterisk.conf, provided by options.c */ +void load_asterisk_conf(void); +void set_asterisk_conf_path(const char *path); +void set_socket_path(const char *path); + int load_modules(unsigned int); /*!< Provided by loader.c */ int modules_shutdown(void); /*!< Provided by loader.c */ int load_pbx(void); /*!< Provided by pbx.c */ diff --git a/include/asterisk/paths.h b/include/asterisk/paths.h index 3e3b8eae0..de28c7575 100644 --- a/include/asterisk/paths.h +++ b/include/asterisk/paths.h @@ -37,5 +37,9 @@ extern const char *ast_config_AST_RUN_GROUP; extern const char *ast_config_AST_RUN_USER; extern const char *ast_config_AST_SYSTEM_NAME; extern const char *ast_config_AST_SBIN_DIR; +extern const char *ast_config_AST_CTL_PERMISSIONS; +extern const char *ast_config_AST_CTL_OWNER; +extern const char *ast_config_AST_CTL_GROUP; +extern const char *ast_config_AST_CTL; #endif /* _ASTERISK_PATHS_H */ |