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
38ea4ee8
Commit
38ea4ee8
authored
Jul 10, 2014
by
Guillaume BIENKOWSKI
Browse files
Made the code more readable
parent
575c9a20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
coreapi/chat.c
coreapi/chat.c
+3
-1
No files found.
coreapi/chat.c
View file @
38ea4ee8
...
...
@@ -132,7 +132,9 @@ static void linphone_chat_message_process_response_from_post_file(void *data, co
char
*
content_type
=
belle_sip_strdup_printf
(
"%s/%s"
,
msg
->
file_transfer_information
->
type
,
msg
->
file_transfer_information
->
subtype
);
/* create a user body handler to take care of the file */
belle_sip_user_body_handler_t
*
first_part_bh
=
belle_sip_user_body_handler_new
(
msg
->
file_transfer_information
->
size
+
linphone_chat_message_compute_filepart_header_size
(
msg
->
file_transfer_information
->
name
,
content_type
),
NULL
,
NULL
,
linphone_chat_message_file_transfer_on_send_body
,
msg
);
size_t
body_size
=
msg
->
file_transfer_information
->
size
+
linphone_chat_message_compute_filepart_header_size
(
msg
->
file_transfer_information
->
name
,
content_type
);
belle_sip_user_body_handler_t
*
first_part_bh
=
belle_sip_user_body_handler_new
(
body_size
,
NULL
,
NULL
,
linphone_chat_message_file_transfer_on_send_body
,
msg
);
/* insert it in a multipart body handler which will manage the boundaries of multipart message */
belle_sip_multipart_body_handler_t
*
bh
=
belle_sip_multipart_body_handler_new
(
linphone_chat_message_file_transfer_on_progress
,
msg
,
(
belle_sip_body_handler_t
*
)
first_part_bh
);
...
...
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