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

gboolean gw_obex_delete ( GwObex ctx,
const gchar *  name,
gint *  error 
)

Remove a file from the remote device.

Parameters:
ctx Pointer returned by gw_obex_setup()
name Filename to remove (null terminated UTF-8)
error Place to store error code on failure (NULL if not interested)
Returns:
TRUE on success, FALSE on failure

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

References gw_obex_put().

                                                                     {
    gboolean ret;
    GW_OBEX_LOCK(ctx);
    CHECK_DISCONNECT(FALSE, error, ctx);
    ret = gw_obex_put(ctx, NULL, name, NULL, NULL, 0, NULL, 0, -1, -1, FALSE);
    if (ret == FALSE)
        gw_obex_get_error(ctx, error);
    GW_OBEX_UNLOCK(ctx);
    return ret;
}


Generated by  Doxygen 1.6.0   Back to index