Method

SoupMultipartget_part

Declaration [src]

gboolean
soup_multipart_get_part (
  SoupMultipart* multipart,
  int part,
  SoupMessageHeaders** headers,
  GBytes** body
)

Description [src]

Gets the indicated body part from multipart.

Parameters

part int
 

The part number to get (counting from 0)

headers SoupMessageHeaders
 

Return location for the MIME part headers.

 The argument will be set by the function.
 The data is owned by the caller of the function.
body GBytes
 

Return location for the MIME part body.

 The argument will be set by the function.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE on success, FALSE if part is out of range (in which case headers and body won’t be set)