Changeset 200 for trunk/obexftp/bt_kit.c

Show
Ignore:
Timestamp:
10/16/07 00:35:15 (3 years ago)
Author:
zany
Message:

win32 needs this

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/obexftp/bt_kit.c

    r193 r200  
    2828#include <unistd.h> 
    2929 
     30#ifndef _WIN32 
    3031#include <netinet/in.h> 
    3132#include <sys/types.h> 
    3233#include <sys/socket.h> 
     34#endif /* _WIN32 */ 
    3335 
    3436#include "bt_kit.h" 
     
    3739  
    3840#ifdef HAVE_BLUETOOTH 
    39 #ifdef HAVE_SDPLIB /* should switch on OS here */ 
    40  
    41 /** 
    42         Nokia OBEX PC Suite Services. 
    43         binary representation of 00005005-0000-1000-8000-0002ee000001 
    44         \note prefer this over FTP on Series 60 devices 
    45  */ 
    46 #define __SVC_UUID_PCSUITE_bytes \ 
    47 { 0x00, 0x00, 0x50, 0x05, \ 
    48   0x00, 0x00, 0x10, 0x00, 0x80, 0x00, \ 
    49   0x00, 0x02, 0xee, 0x00, 0x00, 0x01 } 
    50 #define SVC_UUID_PCSUITE ((const uint8_t []) __SVC_UUID_PCSUITE_bytes) 
    5141 
    5242#ifdef _WIN32 
     
    7161        return 0; 
    7262} 
    73 #endif 
     63#endif /* _WIN32 */ 
     64 
     65#ifdef HAVE_SDPLIB /* should switch on OS here */ 
     66 
     67/** 
     68        Nokia OBEX PC Suite Services. 
     69        binary representation of 00005005-0000-1000-8000-0002ee000001 
     70        \note prefer this over FTP on Series 60 devices 
     71 */ 
     72#define __SVC_UUID_PCSUITE_bytes \ 
     73{ 0x00, 0x00, 0x50, 0x05, \ 
     74  0x00, 0x00, 0x10, 0x00, 0x80, 0x00, \ 
     75  0x00, 0x02, 0xee, 0x00, 0x00, 0x01 } 
     76#define SVC_UUID_PCSUITE ((const uint8_t []) __SVC_UUID_PCSUITE_bytes) 
    7477 
    7578 
     
    420423 
    421424#else 
    422 #warning "no bluetooth support for this platform" 
     425#warning "no bluetooth sdp support for this platform" 
    423426 
    424427char **btkit_discover(const char *UNUSED(src)) 
     
    443446int btkit_unregister_service(int UNUSED(svclass)) 
    444447{ 
     448        return -1; 
    445449} 
    446450