ver 1.3: Add support for setting the creation-ID. Updated constants to match IrOBEX 1.3. Replace netbuf implementation with databuffer. Fix segmentation fault when receiving invalid OBEX packets. ver 1.2: Add OBEX_EV_REQCHECK support. Add support for suspend after sending a header. Add support for empty headers for buggy OBEX servers. Fix memory leak in obex_object_send(). ver 1.1: Fix list of exported functions. Fix duplicate string from basename() result. Fix wrong order of sanity checks. Fix memory leak in send_stream() function. ISO C99 says that inttypes.h includes stdint.h header. Add proper client side ABORT support. Add support for OBEX_SuspendRequest() and OBEX_ResumeRequest(). Add USB transport support. Increase the allowed maximum MTU to 64kB-1. Disconnect when an ABORT fails. Make it possible to include headers from C++ source code. Advertise OBEX Protocol Version 1.0. pkgsrc: * I've added patches to detect properly NetBSD bluetooth support and I have sent it to the openobex folks, they will be integrated soon. * Take maintainership for now. * Bump BUILDLINK_API_DEPENDS because the API has changed. *** PLEASE DO NOT TOUCH OBEXFTP, I'M UPDATING IT RIGHT NOW. THANKS ***
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
$NetBSD: patch-ab,v 1.2 2006/07/09 09:27:52 xtraeme Exp $
|
|
|
|
--- acinclude.m4.orig 2006-06-14 11:11:47.000000000 +0200
|
|
+++ acinclude.m4 2006-07-09 10:33:49.000000000 +0200
|
|
@@ -61,6 +61,17 @@
|
|
AC_SUBST(BLUEZ_LIBS)
|
|
])
|
|
|
|
+AC_DEFUN([NETBSD_BLUETOOTH_CHECK], [
|
|
+ AC_CACHE_CHECK([for NetBSD bluetooth support], netbsdbt_found,[
|
|
+
|
|
+ AC_TRY_COMPILE([
|
|
+ #include <bluetooth.h>
|
|
+ ], [
|
|
+ struct sockaddr_bt *bt;
|
|
+ ], netbsdbt_found=yes, netbsdbt_found=no)
|
|
+ ])
|
|
+])
|
|
+
|
|
AC_DEFUN([AC_PATH_USB], [
|
|
PKG_CHECK_MODULES(USB, libusb, usb_found=yes, AC_MSG_RESULT(no))
|
|
AC_SUBST(USB_CFLAGS)
|
|
@@ -126,6 +137,12 @@
|
|
REQUIRES="bluez"
|
|
fi
|
|
|
|
+ if (test "${bluetooth_enable}" = "yes" && test "${netbsdbt_found}" = "yes"); then
|
|
+ AC_DEFINE(HAVE_BLUETOOTH, 1, [Define if system supports Bluetooth and it's enabled])
|
|
+ AC_DEFINE(HAVE_NETBSD_BLUETOOTH, 1, [Define if it uses NetBSD's bluetooth stack])
|
|
+ CPPFLAGS="$CPPFLAGS -DCOMPAT_BLUEZ"
|
|
+ fi
|
|
+
|
|
if (test "${usb_enable}" = "yes" && test "${usb_found}" = "yes"); then
|
|
AC_DEFINE(HAVE_USB, 1, [Define if system supports USB and it's enabled])
|
|
AC_CHECK_FILE(${prefix}/lib/pkgconfig/libusb.pc, REQUIRES="$REQUIRES libusb")
|