Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
1b9c79b9
Commit
1b9c79b9
authored
Feb 01, 2018
by
Benjamin REIS
Browse files
get correct database path in mainDb tester
parent
0fcb6fe1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
tester/main-db-tester.cpp
tester/main-db-tester.cpp
+3
-8
No files found.
tester/main-db-tester.cpp
View file @
1b9c79b9
...
...
@@ -35,18 +35,13 @@ using namespace LinphonePrivate;
// -----------------------------------------------------------------------------
static
const
string
getDatabasePath
()
{
static
const
string
path
=
string
(
bc_tester_get_resource_dir_prefix
())
+
"db/linphone.db"
;
return
path
;
}
// -----------------------------------------------------------------------------
class
MainDbProvider
{
public:
MainDbProvider
()
{
mCoreManager
=
linphone_core_manager_create
(
"marie_rc"
);
linphone_config_set_string
(
linphone_core_get_config
(
mCoreManager
->
lc
),
"storage"
,
"uri"
,
getDatabasePath
().
c_str
());
char
*
dbPath
=
bc_tester_res
(
"db/linphone.db"
);
linphone_config_set_string
(
linphone_core_get_config
(
mCoreManager
->
lc
),
"storage"
,
"uri"
,
dbPath
);
bctbx_free
(
dbPath
);
linphone_core_manager_start
(
mCoreManager
,
false
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment