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

gboolean gw_obex_put_fd ( GwObex ctx,
gint  fd,
const gchar *  remote,
const gchar *  type,
gint *  error 

Read data from a file descriptor and send it to the remote device

ctx Pointer returned by gw_obex_setup()
fd File descriptor to read the data from
remote Remote filename (null terminated UTF-8)
type MIME-type of the object
error Place to store error code on failure (NULL if not interested)
TRUE on success, FALSE on failure

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

References gw_obex_put().

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

Generated by  Doxygen 1.6.0   Back to index