Hi, I updated my openobex tree with quite some changes. This is not a pull request, yet. For he changelog since master, see further down. Some of the changes may look unusual for gcc-only users. Since MSVC is not C99-capable, some work-arounds were necessary.
I also adapted obexftp to compile and work with those openobex changes. The cleanup revealed some previous bugs but are mainly adaptions to the new API: http://gitorious.org/obexftp The changes in openobex are: Fix commit ab21c6c431afab2d0f368430bad1496e2f0caf1c Revert "Use select also for USB when the read file descriptor is valid" Add a generic struct for transport operations Add extra source file for OBEX_TRANS_FD Fix build with MSVC9 Add extra source file for OBEX_TRANS_CUSTOM Fix special handling of OBEX_TRANS_INET Add missing AF_INET conversion Add write function pointer to obex_transport_ops Add read function pointer to obex_transport_ops Reduce code duplication Add transport enumeration function wrapper Make the IrDA device enumeration accessable to the application Remove simple and unused unicode conversion functions (v2) Fix printf data types in debug function calls Add an application for finding connectable devices. Fix FindLibUSB cmake module Add transport specific data pointer Use WSAStartup() on Windows only for transports that need it Add OBEX_FL_CLOEXEC flag Use notifiers to get the USB-1.x FD more reliably CMakeModules/FindLibUSB.cmake | 18 +- apps/CMakeLists.txt | 14 +- apps/obex_find.c | 116 ++++++++++ apps/obex_io.c | 42 ++++ apps/obex_io.h | 3 + doc/openobex-apps.xml | 32 +++ include/openobex/obex.h | 3 - include/openobex/obex_const.h | 26 ++- ircp/ircp_io.c | 42 ++++ ircp/ircp_io.h | 3 + lib/CMakeLists.txt | 10 + lib/Makefile.am | 6 +- lib/btobex.c | 70 +++++- lib/btobex.h | 8 +- lib/cloexec.h | 34 +++ lib/customtrans.c | 68 ++++++ lib/customtrans.h | 2 + lib/fdobex.c | 81 +++++++ lib/fdobex.h | 2 + lib/inobex.c | 82 ++++++- lib/inobex.h | 8 +- lib/irobex.c | 454 ++++++++++++++++++++++-------------- lib/irobex.h | 7 +- lib/obex.c | 192 +++++----------- lib/obex.sym | 2 - lib/obex_connect.c | 2 +- lib/obex_main.c | 29 ++- lib/obex_main.h | 4 +- lib/obex_object.c | 43 ++-- lib/obex_transport.c | 512 ++++++++++------------------------------ lib/obex_transport.h | 36 +++- lib/usb1obex.c | 200 +++++++++++------ lib/usbobex.c | 110 +++++++--- lib/usbobex.h | 6 +- lib/usbutils.c | 4 +- 35 files changed, 1380 insertions(+), 891 deletions(-) create mode 100644 apps/obex_find.c create mode 100644 lib/cloexec.h create mode 100644 lib/customtrans.c create mode 100644 lib/customtrans.h create mode 100644 lib/fdobex.c create mode 100644 lib/fdobex.h ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users