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

GwObexXfer* gw_obex_get_async ( GwObex ctx,
const char *  name,
const char *  type,
gint *  error 

Start a GET operation asynchronously

ctx Pointer returned by gw_obex_setup()
name Name of the object (null terminated UTF-8)
type Type of the object (null terminated UTF-8), or NULL
error Place to store error code on failure (NULL if not interested)
a new GwObexXfer object on success, NULL on failure

Definition at line 127 of file obex-xfer.c.

References gw_obex_get().

    gboolean ret;
    CHECK_DISCONNECT(NULL, error, ctx);
    ret = gw_obex_get(ctx, NULL, name, type, NULL, 0, NULL, NULL, -1, TRUE);
    if (ret == FALSE)
        gw_obex_get_error(ctx, error);
    return ret ? ctx->xfer : NULL;

Generated by  Doxygen 1.6.0   Back to index