Lines Matching refs:current_params
1675 PTPParams *current_params; in LIBMTP_Open_Raw_Device() local
1697 current_params = (PTPParams *) malloc(sizeof(PTPParams)); in LIBMTP_Open_Raw_Device()
1698 if (current_params == NULL) { in LIBMTP_Open_Raw_Device()
1702 memset(current_params, 0, sizeof(PTPParams)); in LIBMTP_Open_Raw_Device()
1703 current_params->device_flags = rawdevice->device_entry.device_flags; in LIBMTP_Open_Raw_Device()
1704 current_params->nrofobjects = 0; in LIBMTP_Open_Raw_Device()
1705 current_params->objects = NULL; in LIBMTP_Open_Raw_Device()
1706 current_params->response_packet_size = 0; in LIBMTP_Open_Raw_Device()
1707 current_params->response_packet = NULL; in LIBMTP_Open_Raw_Device()
1709 current_params->data = NULL; in LIBMTP_Open_Raw_Device()
1711 current_params->debug_func = LIBMTP_ptp_debug; in LIBMTP_Open_Raw_Device()
1712 current_params->error_func = LIBMTP_ptp_error; in LIBMTP_Open_Raw_Device()
1714 current_params->byteorder = PTP_DL_LE; in LIBMTP_Open_Raw_Device()
1715 current_params->cd_locale_to_ucs2 = iconv_open("UCS-2LE", "UTF-8"); in LIBMTP_Open_Raw_Device()
1716 current_params->cd_ucs2_to_locale = iconv_open("UTF-8", "UCS-2LE"); in LIBMTP_Open_Raw_Device()
1718 if(current_params->cd_locale_to_ucs2 == (iconv_t) -1 || in LIBMTP_Open_Raw_Device()
1719 current_params->cd_ucs2_to_locale == (iconv_t) -1) { in LIBMTP_Open_Raw_Device()
1722 free(current_params); in LIBMTP_Open_Raw_Device()
1726 mtp_device->params = current_params; in LIBMTP_Open_Raw_Device()
1731 current_params, in LIBMTP_Open_Raw_Device()
1734 free(current_params); in LIBMTP_Open_Raw_Device()
1740 ptp_usb->params = current_params; in LIBMTP_Open_Raw_Device()
1744 if (ptp_getdeviceinfo(current_params, in LIBMTP_Open_Raw_Device()
1745 ¤t_params->deviceinfo) != PTP_RC_OK) { in LIBMTP_Open_Raw_Device()
1753 current_params = NULL; in LIBMTP_Open_Raw_Device()
1759 for (i=0;i<current_params->deviceinfo.ImageFormats_len;i++) { in LIBMTP_Open_Raw_Device()
1762 if (ptp_mtp_getobjectpropdesc(current_params, in LIBMTP_Open_Raw_Device()
1764 current_params->deviceinfo.ImageFormats[i], in LIBMTP_Open_Raw_Device()
1810 ptp_property_issupported( current_params, PTP_DPC_BatteryLevel)) { in LIBMTP_Open_Raw_Device()
1814 if(ptp_getdevicepropdesc(current_params, in LIBMTP_Open_Raw_Device()