From: Marcel Holtmann <marcel@holtmann.org>
To: Nami <nami.li@atheros.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/2] Bluetooth: FTP and OPP over L2CAP
Date: Wed, 15 Jun 2011 04:17:10 -0700 [thread overview]
Message-ID: <1308136632.2518.11.camel@aeonflux> (raw)
In-Reply-To: <1308110046-5704-1-git-send-email-nami.li@atheros.com>
Hi Nami,
> From: nami <nami.li@atheros.com>
>
>
> Signed-off-by: Nami <nami.li@atheros.com>
same as with the other one.
> ---
> glib/obex-lowlevel.c | 2 +-
> include/openobex/obex.h | 2 +-
> include/openobex/obex_const.h | 5 +++++
> lib/obex.c | 3 ++-
> lib/obex_main.c | 5 ++++-
> lib/obex_transport.h | 1 +
> 6 files changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/glib/obex-lowlevel.c b/glib/obex-lowlevel.c
> index 65172fc..660fc37 100644
> --- a/glib/obex-lowlevel.c
> +++ b/glib/obex-lowlevel.c
> @@ -496,7 +496,7 @@ obex_t *obex_open(int fd, obex_callback_t *callback, void *data)
>
> OBEX_SetTransportMTU(handle, sizeof(context->buf), sizeof(context->buf));
>
> - if (FdOBEX_TransportSetup(handle, fd, fd, 0) < 0) {
> + if (FdOBEX_TransportSetup(handle, fd, fd, 0, OBEX_MT_STREAM) < 0) {
> OBEX_Cleanup(handle);
> return NULL;
> }
> diff --git a/include/openobex/obex.h b/include/openobex/obex.h
> index f948113..0d7afec 100644
> --- a/include/openobex/obex.h
> +++ b/include/openobex/obex.h
> @@ -147,7 +147,7 @@ OPENOBEX_SYMBOL(int) BtOBEX_TransportConnect(obex_t *self, bt_addr_t *src, bt_ad
> /*
> * OBEX File API
> */
> -OPENOBEX_SYMBOL(int) FdOBEX_TransportSetup(obex_t *self, int rfd, int wfd, int mtu);
> +OPENOBEX_SYMBOL(int) FdOBEX_TransportSetup(obex_t *self, int rfd, int wfd, int mtu, int fmt);
this is breaking public API.
> /*
> * OBEX interface discovery API
> diff --git a/include/openobex/obex_const.h b/include/openobex/obex_const.h
> index cb7afeb..4a0a7e9 100644
> --- a/include/openobex/obex_const.h
> +++ b/include/openobex/obex_const.h
> @@ -302,6 +302,11 @@ enum obex_rsp_mode {
> OBEX_RSP_MODE_SINGLE = 1, /**< single response mode (SRM) */
> };
>
> +enum obex_transport_format{
> + OBEX_MT_STREAM ,
> + OBEX_MT_SEQPACKET
> +};
> +
And more important, I have no idea why are you doing this anyway. Even
with L2CAP this should run over SOCK_STREAM.
I assumed that OPP and FTP over L2CAP are requiring eL2CAP actually
which is re-presented as a stream.
Regards
Marcel
next prev parent reply other threads:[~2011-06-15 11:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 3:54 [PATCH 2/2] Bluetooth: FTP and OPP over L2CAP Nami
2011-06-15 11:17 ` Marcel Holtmann [this message]
2011-06-15 12:24 ` tim.howes
2011-06-15 14:21 ` Marcel Holtmann
2011-06-15 15:01 ` Piotr Zgórecki
[not found] <1AFE20D16950C745A2A83986B72E87480132148C3626@EMEXM3131.dir.svc.accenture.com>
2011-06-15 12:48 ` piotr.zgorecki
2011-06-16 2:41 ` Li, Nami
[not found] <56CE5C6D2B8C7844B3FD6D5DDA55523D3E8FFE6371@EMEXM3125.dir.svc.accenture.com>
2011-06-15 13:21 ` Piotr Zgórecki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308136632.2518.11.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=nami.li@atheros.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox