Changeset 225 for trunk/obexftp/client.c

Show
Ignore:
Timestamp:
08/08/08 22:06:46 (2 years ago)
Author:
zany
Message:

adding a simpler connect wrapper

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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.