diff options
author | Joshua Colp <jcolp@digium.com> | 2013-01-25 14:01:04 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-01-25 14:01:04 +0000 |
commit | 3fa4278a31d0f6f738b951c0d592941281aed196 (patch) | |
tree | ff960ccaa22aac704e984e149a5f5ccb80271a6e /main/asterisk.c | |
parent | e9446501c9176b6c05b4a59f88090250b7f04fea (diff) |
Merge the sorcery data access layer API.
Sorcery is a unifying data access layer which provides a pluggable mechanism to allow
object creation, retrieval, updating, and deletion using different backends (or wizards).
This is a fancy way of saying "one interface to rule them all" where them is configuration,
realtime, and anything else that comes along.
Review: https://reviewboard.asterisk.org/r/2259/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 67d09ff66..f7b62613a 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -239,6 +239,7 @@ int daemon(int, int); /* defined in libresolv of all places */ #include "asterisk/format.h" #include "asterisk/aoc.h" #include "asterisk/uuid.h" +#include "asterisk/sorcery.h" #include "../defaults.h" @@ -4116,6 +4117,11 @@ int main(int argc, char *argv[]) ast_aoc_cli_init(); ast_uuid_init(); + if (ast_sorcery_init()) { + printf("%s", term_quit()); + exit(1); + } + ast_makesocket(); sigemptyset(&sigs); sigaddset(&sigs, SIGHUP); |