mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix(Core): fix build and provide a LINPHONE_DB define
This commit is contained in:
parent
6467c77042
commit
18690440ee
1 changed files with 6 additions and 3 deletions
|
|
@ -23,12 +23,15 @@
|
|||
#include "chat/chat-room/basic-chat-room.h"
|
||||
#include "core-p.h"
|
||||
#include "db/main-db.h"
|
||||
#include "logger/logger.h"
|
||||
#include "object/object-p.h"
|
||||
#include "paths/paths.h"
|
||||
|
||||
// TODO: Remove me later.
|
||||
#include "private.h"
|
||||
|
||||
#define LINPHONE_DB "linphone.db"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
using namespace std;
|
||||
|
|
@ -46,13 +49,13 @@ Core::Core (LinphoneCore *cCore) : Object(*new CorePrivate) {
|
|||
strcmp(lp_config_get_string(linphone_core_get_config(d->cCore), "server", "db_backend", NULL), "mysql") == 0
|
||||
? MainDb::Mysql
|
||||
: MainDb::Sqlite3;
|
||||
lInfo << "Creating linphone.db at : " << uri;
|
||||
lInfo() << "Creating " LINPHONE_DB " at: " << uri;
|
||||
d->mainDb.connect(backend, uri);
|
||||
return;
|
||||
}
|
||||
|
||||
static string path = getDataPath() + "/linphone.db";
|
||||
lInfo << "Creating linphone.db at : " << path;
|
||||
static string path = getDataPath() + "/" LINPHONE_DB;
|
||||
lInfo() << "Creating " LINPHONE_DB " at: " << path;
|
||||
d->mainDb.connect(MainDb::Sqlite3, path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue