Logo Search packages:      
Sourcecode: obexd version File versions  Download package

gboolean gw_obex_get_buf ( GwObex ctx,
const gchar *  remote,
const gchar *  type,
gchar **  buf,
gint *  buf_size,
gint *  error 

Get an object from the remote device and store it in a memory buffer. Either remote filename or type must be supplied (or both).

ctx Pointer returned by gw_obex_setup()
remote Remote filename (null terminated UTF-8)
type MIME-type of the object
buf Buffer to store the object in. g_free() when not needed anymore.
buf_size Place to store length of fetched object
error Place to store error code on failure (NULL if not interested)
TRUE on success, FALSE on failure

Definition at line 99 of file gw-obex.c.

References gw_obex_get().

    gboolean ret;
    CHECK_DISCONNECT(FALSE, error, ctx);
    ret = gw_obex_get(ctx, NULL, remote, type, NULL, 0, buf, buf_size, -1, FALSE);
    if (ret == FALSE)
        gw_obex_get_error(ctx, error);
    return ret;

Generated by  Doxygen 1.6.0   Back to index