[openobex-users] [PATCH v2 openobex 1/3] Add transport format member in fdobex_data struct.

2011-06-20 Thread Nami
--- include/openobex/obex_const.h |5 + lib/fdobex.c |1 + lib/fdobex.h |1 + 3 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/openobex/obex_const.h b/include/openobex/obex_const.h index cb7afeb..700bacb 100644 --- a/include/o

[openobex-users] [PATCH v3 openobex 3/3] Modify code to read entire packet when fd transport format is SEQPACKET.

2011-06-20 Thread Nami
--- lib/fdobex.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/fdobex.c b/lib/fdobex.c index 7fa4a21..46a0796 100644 --- a/lib/fdobex.c +++ b/lib/fdobex.c @@ -79,6 +79,9 @@ static int fdobex_read(obex_t *self, void *buf, int buflen) { struct obex_transport

[openobex-users] [PATCH v2 openobex 2/3] Create new API to set fd obex transport format.

2011-06-20 Thread Nami
--- include/openobex/obex.h |1 + lib/obex.c | 16 lib/obex.sym|1 + 3 files changed, 18 insertions(+), 0 deletions(-) diff --git a/include/openobex/obex.h b/include/openobex/obex.h index f948113..cb1d66a 100644 --- a/include/openobex/obex.h +++

[openobex-users] [PATCH v2 openobex 3/3] Modify code to read entire packet when fd transport format is SEQPACKET.

2011-06-20 Thread Li, Nami
--- lib/fdobex.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/fdobex.c b/lib/fdobex.c index 7fa4a21..46a0796 100644 --- a/lib/fdobex.c +++ b/lib/fdobex.c @@ -79,6 +79,9 @@ static int fdobex_read(obex_t *self, void *buf, int buflen) { struct obex_transport

Re: [openobex-users] [PATCH v3 openobex 3/3] Modify code to read entire packet when fd transport format is SEQPACKET.

2011-06-20 Thread Li, Nami
Sorry, please ignore this mail. -Original Message- From: linux-bluetooth-ow...@vger.kernel.org [mailto:linux-bluetooth-ow...@vger.kernel.org] On Behalf Of Li, Nami Sent: 2011年6月21日 13:17 To: openobex-users@lists.sourceforge.net; linux-blueto...@vger.kernel.org Cc: Liu, Haijun; Fan, Hong S

[openobex-users] [PATCH v3 openobex 3/3] Modify code to read entire packet when fd transport format is SEQPACKET.

2011-06-20 Thread Li, Nami
--- lib/fdobex.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/fdobex.c b/lib/fdobex.c index 7fa4a21..46a0796 100644 --- a/lib/fdobex.c +++ b/lib/fdobex.c @@ -79,6 +79,9 @@ static int fdobex_read(obex_t *self, void *buf, int buflen) { struct obex_transport

[openobex-users] [PATCH v2 openobex 1/3] Add transport format member in fdobex_data struct.

2011-06-20 Thread Li, Nami
--- include/openobex/obex_const.h |5 + lib/fdobex.c |1 + lib/fdobex.h |1 + 3 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/openobex/obex_const.h b/include/openobex/obex_const.h index cb7afeb..700bacb 100644 --- a/include/o

[openobex-users] [PATCH v2 openobex 2/3] Create new API to set fd obex transport format.

2011-06-20 Thread Li, Nami
--- include/openobex/obex.h |1 + lib/obex.c | 16 lib/obex.sym|1 + 3 files changed, 18 insertions(+), 0 deletions(-) diff --git a/include/openobex/obex.h b/include/openobex/obex.h index f948113..cb1d66a 100644 --- a/include/openobex/obex.h +++

Re: [openobex-users] [PATCH 2/3] add "-lbluetooth" for FreeBSD and NetBSD

2011-06-20 Thread Hendrik Sattler
Am Montag, 20. Juni 2011, 20:27:03 schrieb Iain Hibbert: > On Mon, 20 Jun 2011, Hendrik Sattler wrote: > > Zitat von Iain Hibbert : > > > > Do you want to adapt CMakeModules/FindBluetooth.cmake also? Or shall > > > > I do? > > > > > > I noticed that the CMake configuration method does not work but

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Hendrik Sattler
Am Montag, 20. Juni 2011, 22:00:26 schrieb Iain Hibbert: > On Mon, 20 Jun 2011, Hendrik Sattler wrote: > > Am Montag, 20. Juni 2011, 19:51:18 schrieb Iain Hibbert: > > > I actually disklike this method, for the reason that it breaks when the > > > OS changes even though the feature remains (eg _WIN

Re: [openobex-users] [PATCH openobex 1/3] Add transport format member in fdobex_data struct. Support STREAM and SEQPACKET transport format.

2011-06-20 Thread Hendrik Sattler
Hi, Am Montag, 20. Juni 2011, 21:45:11 schrieb Marcel Holtmann: > > > > include/openobex/obex_const.h |4 > > > > lib/fdobex.h |1 + > > > > 2 files changed, 5 insertions(+), 0 deletions(-) > > > > > > > > diff --git a/include/openobex/obex_const.h > > > > b/include

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Iain Hibbert
On Mon, 20 Jun 2011, Hendrik Sattler wrote: > Am Montag, 20. Juni 2011, 19:51:18 schrieb Iain Hibbert: > > I actually disklike this method, for the reason that it breaks when the OS > > changes even though the feature remains (eg _WIN64 will fail to work in > > your example :) better to rely just

Re: [openobex-users] [PATCH openobex 1/3] Add transport format member in fdobex_data struct. Support STREAM and SEQPACKET transport format.

2011-06-20 Thread Marcel Holtmann
Hi Hendrik, > > > include/openobex/obex_const.h |4 > > > lib/fdobex.h |1 + > > > 2 files changed, 5 insertions(+), 0 deletions(-) > > > > > > diff --git a/include/openobex/obex_const.h > > > b/include/openobex/obex_const.h index cb7afeb..8acee91 100644 > > > --- a

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Hendrik Sattler
Am Montag, 20. Juni 2011, 19:51:18 schrieb Iain Hibbert: > I actually disklike this method, for the reason that it breaks when the OS > changes even though the feature remains (eg _WIN64 will fail to work in > your example :) better to rely just on the feature itself, though it could > be better ex

Re: [openobex-users] [PATCH openobex 1/3] Add transport format member in fdobex_data struct. Support STREAM and SEQPACKET transport format.

2011-06-20 Thread Hendrik Sattler
Am Montag, 20. Juni 2011, 18:43:10 schrieb Marcel Holtmann: > Hi Nami, > > > include/openobex/obex_const.h |4 > > lib/fdobex.h |1 + > > 2 files changed, 5 insertions(+), 0 deletions(-) > > > > diff --git a/include/openobex/obex_const.h > > b/include/openobex/obex_

Re: [openobex-users] [PATCH 2/3] add "-lbluetooth" for FreeBSD and NetBSD

2011-06-20 Thread Iain Hibbert
On Mon, 20 Jun 2011, Hendrik Sattler wrote: > Zitat von Iain Hibbert : > > > Do you want to adapt CMakeModules/FindBluetooth.cmake also? Or shall I do? > > > > I noticed that the CMake configuration method does not work but I didn't > > look into it yet (more than just the lack of library, I get c

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Iain Hibbert
On Mon, 20 Jun 2011, Hendrik Sattler wrote: > Zitat von Iain Hibbert : > > > On Mon, 20 Jun 2011, Hendrik Sattler wrote: > > > > > > file, the following: > > > > > > > > #if !defined(bt_addr_t) > > > > # if defined(SOL_RFCOMM) > > > > #if defined(_WIN32) /* Windows */ > > > > # define b

Re: [openobex-users] [PATCH openobex 1/3] Add transport format member in fdobex_data struct. Support STREAM and SEQPACKET transport format.

2011-06-20 Thread Marcel Holtmann
Hi Nami, > include/openobex/obex_const.h |4 > lib/fdobex.h |1 + > 2 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/include/openobex/obex_const.h b/include/openobex/obex_const.h > index cb7afeb..8acee91 100644 > --- a/include/openobex/obex_const.h

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Hendrik Sattler
Zitat von Iain Hibbert : > On Mon, 20 Jun 2011, Hendrik Sattler wrote: > >> > file, the following: >> > >> > #if !defined(bt_addr_t) >> > # if defined(SOL_RFCOMM) >> > #if defined(_WIN32) /* Windows */ >> > # define bt_addr_t BTH_ADDR >> > #else /* Linux, FreeBSD, NetBSD */ >> > #

[openobex-users] [PATCH] fix up BtOBEX_ function prototypes

2011-06-20 Thread Iain Hibbert
we only need to detect the presence of "Bluetooth Device Address" type in order to provide the function prototype, which needs to be from a header included prior to while here constify arguments --- include/openobex/obex.h | 21 +++-- lib/obex.c |6 +++--- 2 fi

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Iain Hibbert
On Mon, 20 Jun 2011, Hendrik Sattler wrote: > > file, the following: > > > > #if !defined(bt_addr_t) > > # if defined(SOL_RFCOMM) > > #if defined(_WIN32) /* Windows */ > > # define bt_addr_t BTH_ADDR > > #else /* Linux, FreeBSD, NetBSD */ > > # define bt_addr_t bdaddr_t > > #

Re: [openobex-users] [PATCH 2/3] add "-lbluetooth" for FreeBSD and NetBSD

2011-06-20 Thread Hendrik Sattler
Zitat von Iain Hibbert : >> Do you want to adapt CMakeModules/FindBluetooth.cmake also? Or shall I do? > > I noticed that the CMake configuration method does not work but I didn't > look into it yet (more than just the lack of library, I get compilation > errors from missing headers, perhaps lack o

Re: [openobex-users] [PATCH 2/3] add "-lbluetooth" for FreeBSD and NetBSD

2011-06-20 Thread Iain Hibbert
On Mon, 20 Jun 2011, Hendrik Sattler wrote: > Zitat von Iain Hibbert : > > > --- > > acinclude.m4 |2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/acinclude.m4 b/acinclude.m4 > > index 7b67007..3da248a 100644 > > --- a/acinclude.m4 > > +++ b/acinclude.m4 > > @@

Re: [openobex-users] getaddrinfo() vs _XOPEN_SOURCE=500

2011-06-20 Thread Hendrik Sattler
Zitat von Iain Hibbert : > Hi > > One more issue with building openobex on NetBSD is that getaddrinfo() and > struct addrinfo are shielded behind XOPEN_SOURCE >= 520 restrictions, and > in obex_tcp.c the > > #define _XOPEN_SOURCE 500 > > means that they are excluded.. I can't find a citation for

[openobex-users] getaddrinfo() vs _XOPEN_SOURCE=500

2011-06-20 Thread Iain Hibbert
Hi One more issue with building openobex on NetBSD is that getaddrinfo() and struct addrinfo are shielded behind XOPEN_SOURCE >= 520 restrictions, and in obex_tcp.c the #define _XOPEN_SOURCE 500 means that they are excluded.. I can't find a citation for the 520 value, but the NetBSD guys are ge

Re: [openobex-users] [PATCH 2/3] add "-lbluetooth" for FreeBSD and NetBSD

2011-06-20 Thread Hendrik Sattler
Zitat von Iain Hibbert : > --- > acinclude.m4 |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/acinclude.m4 b/acinclude.m4 > index 7b67007..3da248a 100644 > --- a/acinclude.m4 > +++ b/acinclude.m4 > @@ -309,10 +309,12 @@ AC_DEFUN([AC_ARG_OPENOBEX], [ > >

Re: [openobex-users] build problems with NetBSD

2011-06-20 Thread Hendrik Sattler
Zitat von Iain Hibbert : > Hi > > Since I saw rumours of a 2.0 release, I tried to build openobex cloned > from > > git://git.kernel.org/pub/scm/bluetooth/openobex.git > > on NetBSD.. some patches to follow but I still have trouble with the A tester/developer for *BSD is always welcome :-) >

[openobex-users] [PATCH 3/3] AI_ADDRCONFIG may not be supported

2011-06-20 Thread Iain Hibbert
--- apps/obex_tcp.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/apps/obex_tcp.c b/apps/obex_tcp.c index 7fca284..17204fa 100644 --- a/apps/obex_tcp.c +++ b/apps/obex_tcp.c @@ -61,7 +61,9 @@ static int get_peer_addr(char *name, struct sockaddr_storage *peer)

[openobex-users] [PATCH 1/3] add compat str2ba() for NetBSD

2011-06-20 Thread Iain Hibbert
--- lib/bluez_compat.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/bluez_compat.h b/lib/bluez_compat.h index b0b97d6..3f36cd7 100644 --- a/lib/bluez_compat.h +++ b/lib/bluez_compat.h @@ -66,6 +66,7 @@ extern bdaddr_t bluez_compat_bdaddr_any; #define rc_channel bt

[openobex-users] [PATCH 2/3] add "-lbluetooth" for FreeBSD and NetBSD

2011-06-20 Thread Iain Hibbert
--- acinclude.m4 |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 7b67007..3da248a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -309,10 +309,12 @@ AC_DEFUN([AC_ARG_OPENOBEX], [ if (test "${netbsdbt_cv_found}" = "yes");

[openobex-users] build problems with NetBSD

2011-06-20 Thread Iain Hibbert
Hi Since I saw rumours of a 2.0 release, I tried to build openobex cloned from git://git.kernel.org/pub/scm/bluetooth/openobex.git on NetBSD.. some patches to follow but I still have trouble with the file, the following: #if !defined(bt_addr_t) # if defined(SOL_RFCOMM) #if defined(_WIN

Re: [openobex-users] [PATCH openobex 1/3] Add transport format member in fdobex_data struct. Support STREAM and SEQPACKET transport format.

2011-06-20 Thread Hendrik Sattler
Zitat von Nami : > --- > include/openobex/obex_const.h |4 > lib/fdobex.h |1 + > 2 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/include/openobex/obex_const.h b/include/openobex/obex_const.h > index cb7afeb..8acee91 100644 > --- a/include/openobex/

Re: [openobex-users] [PATCH openobex 2/3] Add transport format parameter when setup fd obex transprot.

2011-06-20 Thread Hendrik Sattler
Zitat von Nami : > > --- > include/openobex/obex.h |2 +- > lib/obex.c |4 +++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/include/openobex/obex.h b/include/openobex/obex.h > index f948113..0d7afec 100644 > --- a/include/openobex/obex.h > +++ b/includ