Changeset 225

Show
Ignore:
Timestamp:
08/08/08 22:06:46 (19 months ago)
Author:
zany
Message:

adding a simpler connect wrapper

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r222 r225  
    11## Process this file with autoconf to produce a configure script. 
    22# try CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes -Werror" 
    3 AC_INIT(ObexFTP, 0.22, zany@triq.net) 
     3AC_INIT(ObexFTP, 0.23, zany@triq.net) 
    44#AC_CONFIG_SRCDIR(src/foo.c) 
    55AM_INIT_AUTOMAKE(dist-bzip2) 
     
    133133# Project-specific settings 
    134134# VERSION="..." already set my AM_INIT_AUTOMAKE above 
    135 # libtool uses current:release:age to produce .c-a.a.r 
     135# libtool uses current:revision:age to produce .c-a.a.r 
    136136# http://www.gnu.org/software/libtool/manual.html#Updating-version-info 
    137 OBEXFTP_VERSION="2\:0\:2" 
     137OBEXFTP_VERSION="3\:0\:3" 
    138138MULTICOBEX_VERSION="1\:1\:0" 
    139139BFB_VERSION="0\:5\:0" 
  • trunk/obexftp/client.c

    r224 r225  
    565565 
    566566 
     567int obexftp_connect_service(obexftp_client_t *cli, const char *src, const char *device, int port, int service) 
     568{ 
     569        uint8_t *uuid = NULL; 
     570        uint32_t uuid_len = 0; 
     571        if (service == OBEX_FTP_SERVICE) { 
     572                uuid = UUID_FBS; 
     573                uuid_len = sizeof(UUID_FBS); 
     574        } 
     575        if (service == OBEX_SYNC_SERVICE) { 
     576                uuid = UUID_IRMC; 
     577                uuid_len = sizeof(UUID_IRMC); 
     578        } 
     579        // otherwiese default to OBEX_PUSH_SERVICE 
     580        return obexftp_connect_src(cli, src, device, port, uuid, uuid_len); 
     581} 
     582 
     583 
     584 
    567585/** 
    568586        Connect this ObexFTP client using a given source address by sending an OBEX CONNECT request. 
  • trunk/obexftp/client.h

    r194 r225  
    128128                                int port, /* INET(?), BLUETOOTH, USB*/ 
    129129                                /*@null@*/ const uint8_t uuid[], uint32_t uuid_len); 
     130int obexftp_connect_service(obexftp_client_t *cli, 
     131                                /*@null@*/ const char *src, /* HCI no. or address */ 
     132                                /*@null@*/ const char *device, /* for INET, BLUETOOTH */ 
     133                                int port, /* INET(?), BLUETOOTH, USB*/ 
     134                                int service); 
    130135 
    131136//int obexftp_connect_service(obexftp_client_t *cli,