pbap_client.c (f3185e85ee1539baaee13b865cbf4f80349f053d) pbap_client.c (7c685700db4c7c1220fa22d17824b52b8e0769c9)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 892 unchanged lines hidden (view full) ---

901 default:
902 log_info("pbap: obex connect failed, result 0x%02x", packet[0]);
903 client->state = PBAP_CLIENT_INIT;
904 pbap_client_emit_connected_event(client, OBEX_CONNECT_FAILED);
905 break;
906 }
907 break;
908 case PBAP_CLIENT_W4_DISCONNECT_RESPONSE:
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 892 unchanged lines hidden (view full) ---

901 default:
902 log_info("pbap: obex connect failed, result 0x%02x", packet[0]);
903 client->state = PBAP_CLIENT_INIT;
904 pbap_client_emit_connected_event(client, OBEX_CONNECT_FAILED);
905 break;
906 }
907 break;
908 case PBAP_CLIENT_W4_DISCONNECT_RESPONSE:
909 client->state = PBAP_CLIENT_CONNECTED;
909 goep_client_disconnect(client->goep_cid);
910 break;
911 case PBAP_CLIENT_W4_SET_PATH_ROOT_COMPLETE:
912 case PBAP_CLIENT_W4_SET_PATH_ELEMENT_COMPLETE:
913 switch (op_info.response_code) {
914 case OBEX_RESP_SUCCESS:
915 // more path?
916 if (client->current_folder[client->set_path_offset]) {

--- 425 unchanged lines hidden ---
910 goep_client_disconnect(client->goep_cid);
911 break;
912 case PBAP_CLIENT_W4_SET_PATH_ROOT_COMPLETE:
913 case PBAP_CLIENT_W4_SET_PATH_ELEMENT_COMPLETE:
914 switch (op_info.response_code) {
915 case OBEX_RESP_SUCCESS:
916 // more path?
917 if (client->current_folder[client->set_path_offset]) {

--- 425 unchanged lines hidden ---