mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
add db connection on core creation
This commit is contained in:
parent
b969749cde
commit
56ce4a19b1
1 changed files with 4 additions and 2 deletions
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
#include "chat/chat-room/basic-chat-room.h"
|
||||
#include "core-p.h"
|
||||
|
|
@ -47,8 +48,9 @@ Core::Core (LinphoneCore *cCore) : Object(*new CorePrivate) {
|
|||
: MainDb::Sqlite3;
|
||||
d->mainDb.connect(backend, uri);
|
||||
} else {
|
||||
string path = getDataPath();
|
||||
//d->mainDb.connect(MainDb::Sqlite3, linphone_factory_get_writable_dir()/linphone.db);
|
||||
stringstream path;
|
||||
path << getDataPath() << "/linphone.db";
|
||||
d->mainDb.connect(MainDb::Sqlite3, path.str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue