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

gboolean gw_obex_get_capability ( GwObex ctx,
gchar **  cap,
gint *  cap_len,
gint *  error 
)

Get the capability object from the connected remote device.

Parameters:
ctx Pointer returned by gw_obex_setup()
cap Place to store the fetched object. g_free() when not needed anymore.
cap_len Place to store the size of the fetched object
error Place to store a possible error code (NULL if not interested)
Returns:
TRUE on success, FALSE on failure

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

References gw_obex_get().

                                                                                      {
    gboolean ret;
    GW_OBEX_LOCK(ctx);
    CHECK_DISCONNECT(FALSE, error, ctx);
    ret = gw_obex_get(ctx, NULL, NULL, CAP_TYPE, NULL, 0, cap, cap_len, -1, FALSE);
    if (ret == FALSE) {
        *cap = NULL;
        *cap_len = 0;
        gw_obex_get_error(ctx, error);
    }
    GW_OBEX_UNLOCK(ctx);
    return ret;
}


Generated by  Doxygen 1.6.0   Back to index