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.

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)
TRUE on success, FALSE on failure

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

References gw_obex_get().

    gboolean ret;
    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);
    return ret;

Generated by  Doxygen 1.6.0   Back to index