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

gboolean gw_obex_put_buf_with_apparam ( GwObex ctx,
const gchar *  remote,
const gchar *  type,
const guint8 *  apparam,
gint  apparam_size,
const gchar *  buf,
gint  buf_size,
gint  time,
gint *  error 
)

Send a object located in a memory buffer to the remote device. Either remote filename or type must be supplied (or both)

Parameters:
ctx Pointer returned by gw_obex_setup()
remote Remote filename (null terminated UTF-8)
type MIME-type of the object
apparam Application parameters of the object
apparam_size Application parameters size
buf Buffer containing the object
buf_size Buffer (object) size
time Last modification time of object (or -1 if not known)
error Place to store error code on failure (NULL if not interested)
Returns:
TRUE on success, FALSE on failure

Definition at line 150 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, remote, type, apparam, apparam_size, buf, buf_size, time, -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