Re: [PATCH obexd] client: Add parameters to get message in map module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Luiz,

On 30/08/2012 17:21, Luiz Augusto von Dentz wrote:
+       apparam = g_obex_apparam_set_uint8(NULL, MAP_AP_ATTACHMENT, 0);
+       apparam = g_obex_apparam_set_uint8(apparam, MAP_AP_CHARSET, 1);
+       len = g_obex_apparam_encode(apparam, buf, sizeof(buf));
+
+       obc_transfer_set_params(transfer, buf, len);
+
+       g_obex_apparam_free(apparam);
+
         if (!obc_session_queue(msg->data->session, transfer, NULL, NULL, &err))
                 goto fail;

--
1.7.9.5

I have a pending patchset to address this, basically adding filters
parameters so the application can enable what this parameters should
be. Btw, Im confused why are you setting attachment as type uint8, the
spec says it should assume "On" or "Off", which normally means it is
of string type.


I sent this as those parameters are needed to be able to retrieve message on Samsung GT-I9300.
Forgot it as you have more complete patchset.

Attachment parameter is defined as a byte in chapter 6.3.1 of the MAP spec (page 65, bitmask with 0="OFF" and 1="ON").


--
Frederic Danis                            Open Source Technology Center
frederic.danis@xxxxxxxxx                              Intel Corporation

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux