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
This commit is contained in:
Joshua Colp
2013-01-25 14:01:04 +00:00
parent e9446501c9
commit 3fa4278a31
8 changed files with 4079 additions and 0 deletions

View File

@@ -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);