/* Handles a notification that a read-by-type response has been fully processed for the specified discover-all-characteristics proc.  */
static int ble_gattc_disc_all_chrs_rx_complete(struct ble_gattc_proc *proc, int status)
/* Handles a notification that a read-by-type response has been fully processed for the specified discover-all-characteristics proc.  */
static int ble_gattc_disc_all_chrs_rx_complete(struct ble_gattc_proc *proc, int status)
{
    int rc;
    ble_gattc_dbg_assert_proc_not_inserted(proc);
    if (status != 0) {
        ble_gattc_disc_all_chrs_cb(proc, status, 0, NULL);
        return BLE_HS_EDONE;
    }
    if (proc->disc_all_chrs.prev_handle == proc->disc_all_chrs.end_handle) {
        ble_gattc_disc_all_chrs_cb(proc, BLE_HS_EDONE, 0, NULL);
        return BLE_HS_EDONE;
    }
    rc = ble_gattc_disc_all_chrs_resume(proc);
    if (rc != 0) {
        return BLE_HS_EDONE;
    }
    return 0;
}