Return-Path: MIME-Version: 1.0 In-Reply-To: <1326451712-21784-3-git-send-email-lkslawek@gmail.com> References: <1326451712-21784-1-git-send-email-lkslawek@gmail.com> <1326451712-21784-3-git-send-email-lkslawek@gmail.com> Date: Fri, 13 Jan 2012 14:09:47 +0200 Message-ID: Subject: Re: [PATCH obexd 3/4] map_ap.c: Add implementation for map_ap_decode() From: Luiz Augusto von Dentz To: Slawomir Bochenski Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: SGkgU2xhd29taXIsCgpPbiBGcmksIEphbiAxMywgMjAxMiBhdCAxMjo0OCBQTSwgU2xhd29taXIg Qm9jaGVuc2tpIDxsa3NsYXdla0BnbWFpbC5jb20+IHdyb3RlOgo+ICsgoCCgIKAgoCCgIKAgoCBz d2l0Y2ggKGFwX2RlZnNbdGFnb10udHlwZSkgewo+ICsgoCCgIKAgoCCgIKAgoCBjYXNlIEFQVF9V SU5UODoKPiArIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCBpZiAoaGRyLT5sZW4gIT0gMSkgewo+ICsg oCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgREJHKCJWYWx1ZSBvZiB0YWcgJXMgKCVkKSBp cyAlZCBieXRlcyBsb25nICIKPiArIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCg IKAgoCCgIKAgoCAiaW5zdGVhZCBvZiBleHBlY3RlZCAxIGJ5dGUgLSAiCj4gKyCgIKAgoCCgIKAg oCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgInNraXBwZWQhIiwgYXBfZGVmc1t0 YWdvXS5uYW1lLAo+ICsgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCCgIKAg oCCgIGhkci0+dGFnLCBoZHItPmxlbik7Cj4gKyCgIKAgoCCgIKAgoCCgIKAgoCCgIKAgoCC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