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
225b7a67
Commit
225b7a67
authored
Dec 08, 2017
by
Ronan
Browse files
fix(FileTransferChatMessageModifier): camel case ;)
parent
d2ec19ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/chat/modifier/file-transfer-chat-message-modifier.cpp
View file @
225b7a67
...
...
@@ -501,7 +501,7 @@ void FileTransferChatMessageModifier::fileUploadEndBackgroundTask () {
// ----------------------------------------------------------
static
void
fillFileTransferContentInformationsFromVndGsmaRcsFtHttpXml
(
FileTransferContent
*
fileTransferContent
)
{
xmlChar
*
file
_u
rl
=
nullptr
;
xmlChar
*
file
U
rl
=
nullptr
;
xmlDocPtr
xmlMessageBody
;
xmlNodePtr
cur
;
/* parse the msg body to get all informations from it */
...
...
@@ -524,7 +524,7 @@ static void fillFileTransferContentInformationsFromVndGsmaRcsFtHttpXml(FileTrans
xmlFree
(
filename
);
}
if
(
!
xmlStrcmp
(
cur
->
name
,
(
const
xmlChar
*
)
"data"
))
{
file
_u
rl
=
xmlGetProp
(
cur
,
(
const
xmlChar
*
)
"url"
);
file
U
rl
=
xmlGetProp
(
cur
,
(
const
xmlChar
*
)
"url"
);
}
cur
=
cur
->
next
;
...
...
@@ -539,9 +539,9 @@ static void fillFileTransferContentInformationsFromVndGsmaRcsFtHttpXml(FileTrans
}
xmlFreeDoc
(
xmlMessageBody
);
fileTransferContent
->
setFileUrl
(
file
_u
rl
?
(
const
char
*
)
file
_u
rl
:
""
);
fileTransferContent
->
setFileUrl
(
file
U
rl
?
(
const
char
*
)
file
U
rl
:
""
);
xmlFree
(
file
_u
rl
);
xmlFree
(
file
U
rl
);
}
ChatMessageModifier
::
Result
FileTransferChatMessageModifier
::
decode
(
const
shared_ptr
<
ChatMessage
>
&
message
,
int
&
errorCode
)
{
...
...
@@ -571,7 +571,7 @@ ChatMessageModifier::Result FileTransferChatMessageModifier::decode (const share
// ----------------------------------------------------------
static
void
createFileTransferInformationsFromVndGsmaRcsFtHttpXml
(
FileTransferContent
*
fileTransferContent
)
{
xmlChar
*
file
_u
rl
=
nullptr
;
xmlChar
*
file
U
rl
=
nullptr
;
xmlDocPtr
xmlMessageBody
;
xmlNodePtr
cur
;
/* parse the msg body to get all informations from it */
...
...
@@ -618,7 +618,7 @@ static void createFileTransferInformationsFromVndGsmaRcsFtHttpXml (FileTransferC
ms_free
(
content_type
);
}
if
(
!
xmlStrcmp
(
cur
->
name
,
(
const
xmlChar
*
)
"data"
))
{
file
_u
rl
=
xmlGetProp
(
cur
,
(
const
xmlChar
*
)
"url"
);
file
U
rl
=
xmlGetProp
(
cur
,
(
const
xmlChar
*
)
"url"
);
}
//TODO
...
...
@@ -652,7 +652,7 @@ static void createFileTransferInformationsFromVndGsmaRcsFtHttpXml (FileTransferC
// Link the FileContent to the FileTransferContent
fileTransferContent
->
setFileContent
(
fileContent
);
xmlFree
(
file
_u
rl
);
xmlFree
(
file
U
rl
);
}
static
void
_chat_message_on_recv_body
(
belle_sip_user_body_handler_t
*
bh
,
belle_sip_message_t
*
m
,
void
*
data
,
size_t
offset
,
uint8_t
*
buffer
,
size_t
size
)
{
...
...
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