mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user