#20 Win32 port (including bluetooth)

closed-later
nobody
None
5
2007-06-02
2006-12-17
Hendrik Sattler
No

Hi,

as already mentioned on the (currently dead) openobex-users ML, here are the patches for a Windows port, compile-tested.

This includes:
* diffed against CVS code
* support for DLL creation
* compile fixes for the applications
* compile fixes for the glib binding
* bluetooth support (MS stack)
* support for libusb-win32 (SF project)

Maybe you can include this.

Hendrik Sattler

Discussion

1 2 > >> (Page 1 of 2)
  • Logged In: YES
    user_id=356160
    Originator: YES

    win32.patch: general changes for win32 support for lib subdir and changing all includes from winsock.h to winsock2.h

    File Added: win32.patch

     
  • Logged In: YES
    user_id=356160
    Originator: YES

    old-compiler.patch: THIS BREAKS THE API! However, there is no way around it as it is already messed up: never use C++ keywords!

    File Added: old-compiler.patch

     
  • Logged In: YES
    user_id=356160
    Originator: YES

    ws2bth.patch: add support for the MS bluetooth stack (needs some headers files from the Platform SDK and Windows XP SP2 or later)
    Although obex.h is changed, this does not break the API, application just have to include the bluetooth headers BEFORE including obex.h or they will not get the bluetooth function prototypes.

    File Added: ws2bth.patch

     
  •  
    Attachments
  • Logged In: YES
    user_id=356160
    Originator: YES

    glib-win32.patch: yes, glib is also available on win32 platform (available precompiled). There is a missing piece in there: gmtime_r()
    is not available on win32 and thus either it needs to be emulated or the funtion using it should be changed (the latter is probably better).
    A warning about this is issued at compile time.

    File Added: glib-win32.patch

     
  •  
    Attachments
  • Logged In: YES
    user_id=356160
    Originator: YES

    app-win32.patch: fix compilation issues for the apps/ and ircp/ subdirs.
    There are some remaining issues and a compile time warning is issued for
    each of those issues. It also fixes a general link order bug.
    File Added: apps-win32.patch

     
  • Logged In: YES
    user_id=356160
    Originator: YES

    File Added: old-compiler.patch

     
  • Logged In: YES
    user_id=356160
    Originator: YES

    updated patchs:
    old-compiler.patch: also cover linux case
    ws2bth.patch: two ifdefs were inverted

    File Added: ws2bth.patch

     
  • Logged In: YES
    user_id=356160
    Originator: YES

    Files deleted due to posting on mailing list which contains updated versions.

     
1 2 > >> (Page 1 of 2)