- Timestamp:
- 10/16/07 00:35:15 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 modified
-
apps/obexftp.c (modified) (1 diff)
-
m4/lib-ld.m4 (added)
-
m4/lib-link.m4 (added)
-
m4/lib-prefix.m4 (added)
-
obexftp/bt_kit.c (modified) (5 diffs)
-
obexftp/bt_kit.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/apps/obexftp.c
r199 r200 34 34 #include <obexftp/uuid.h> 35 35 36 #ifdef _WIN32_FIXME37 /* OpenOBEX won't define a handler on win32 */38 void DEBUG(unsigned int n, ...) { }39 void DUMPBUFFER(unsigned int n, char *label, char *msg) { }40 #endif /* _WIN32 */41 42 36 #ifdef _WIN32 43 37 #define strcasestr strstr 38 #define ETIMEDOUT WSAETIMEDOUT 39 #define ECONNREFUSED WSAECONNREFUSED 40 #define EHOSTDOWN WSAEHOSTDOWN 41 #define EINPROGRESS WSAEINPROGRESS 44 42 #endif /* _WIN32 */ 45 43 -
trunk/obexftp/bt_kit.c
r193 r200 28 28 #include <unistd.h> 29 29 30 #ifndef _WIN32 30 31 #include <netinet/in.h> 31 32 #include <sys/types.h> 32 33 #include <sys/socket.h> 34 #endif /* _WIN32 */ 33 35 34 36 #include "bt_kit.h" … … 37 39 38 40 #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-0002ee00000144 \note prefer this over FTP on Series 60 devices45 */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)51 41 52 42 #ifdef _WIN32 … … 71 61 return 0; 72 62 } 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) 74 77 75 78 … … 420 423 421 424 #else 422 #warning "no bluetooth s upport for this platform"425 #warning "no bluetooth sdp support for this platform" 423 426 424 427 char **btkit_discover(const char *UNUSED(src)) … … 443 446 int btkit_unregister_service(int UNUSED(svclass)) 444 447 { 448 return -1; 445 449 } 446 450 -
trunk/obexftp/bt_kit.h
r193 r200 42 42 //#include <Bthsdpdef.h> 43 43 //#include <BluetoothAPIs.h> 44 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT 44 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT 45 #define ETIMEDOUT WSAETIMEDOUT 46 #define ECONNREFUSED WSAECONNREFUSED 47 #define EHOSTDOWN WSAEHOSTDOWN 48 #define EINPROGRESS WSAEINPROGRESS 45 49 #define bdaddr_t BTH_ADDR 46 50 #define sockaddr_rc _SOCKADDR_BTH
