| | 567 | int 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 | |