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
20c646bc
Commit
20c646bc
authored
May 20, 2014
by
Guillaume BIENKOWSKI
Browse files
Allow multiple calls to linphone_core_message_storage_init
parent
f0d7040f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
coreapi/message_storage.c
coreapi/message_storage.c
+4
-1
No files found.
coreapi/message_storage.c
View file @
20c646bc
...
...
@@ -87,7 +87,7 @@ static void create_chat_message(char **argv, void *data){
static
int
callback_all
(
void
*
data
,
int
argc
,
char
**
argv
,
char
**
colName
){
LinphoneCore
*
lc
=
(
LinphoneCore
*
)
data
;
char
*
address
=
argv
[
0
];
linphone_core_create_chat_room
(
lc
,
address
);
linphone_core_
get_or_
create_chat_room
(
lc
,
address
);
return
0
;
}
...
...
@@ -378,6 +378,9 @@ void linphone_core_message_storage_init(LinphoneCore *lc){
int
ret
;
const
char
*
errmsg
;
sqlite3
*
db
;
linphone_core_message_storage_close
(
lc
);
ret
=
sqlite3_open
(
lc
->
chat_db_file
,
&
db
);
if
(
ret
!=
SQLITE_OK
)
{
errmsg
=
sqlite3_errmsg
(
db
);
...
...
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