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