Lines Matching refs:deviceinfo
1745 ¤t_params->deviceinfo) != PTP_RC_OK) { in LIBMTP_Open_Raw_Device()
1759 for (i=0;i<current_params->deviceinfo.ImageFormats_len;i++) { in LIBMTP_Open_Raw_Device()
1764 current_params->deviceinfo.ImageFormats[i], in LIBMTP_Open_Raw_Device()
2868 printf(" Manufacturer: %s\n", params->deviceinfo.Manufacturer); in LIBMTP_Dump_Device_Info()
2869 printf(" Model: %s\n", params->deviceinfo.Model); in LIBMTP_Dump_Device_Info()
2870 printf(" Device version: %s\n", params->deviceinfo.DeviceVersion); in LIBMTP_Dump_Device_Info()
2871 printf(" Serial number: %s\n", params->deviceinfo.SerialNumber); in LIBMTP_Dump_Device_Info()
2872 printf(" Vendor extension ID: 0x%08x\n", params->deviceinfo.VendorExtensionID); in LIBMTP_Dump_Device_Info()
2873 printf(" Vendor extension description: %s\n", params->deviceinfo.VendorExtensionDesc); in LIBMTP_Dump_Device_Info()
2876 for (i=0;i<params->deviceinfo.OperationsSupported_len;i++) { in LIBMTP_Dump_Device_Info()
2879 (void) ptp_render_opcode (params, params->deviceinfo.OperationsSupported[i], sizeof(txt), txt); in LIBMTP_Dump_Device_Info()
2880 printf(" %04x: %s\n", params->deviceinfo.OperationsSupported[i], txt); in LIBMTP_Dump_Device_Info()
2883 if (params->deviceinfo.EventsSupported_len == 0) { in LIBMTP_Dump_Device_Info()
2886 for (i=0;i<params->deviceinfo.EventsSupported_len;i++) { in LIBMTP_Dump_Device_Info()
2887 printf(" 0x%04x\n", params->deviceinfo.EventsSupported[i]); in LIBMTP_Dump_Device_Info()
2891 for (i=0;i<params->deviceinfo.DevicePropertiesSupported_len;i++) { in LIBMTP_Dump_Device_Info()
2892 …char const *propdesc = ptp_get_property_description(params, params->deviceinfo.DevicePropertiesSup… in LIBMTP_Dump_Device_Info()
2895 printf(" 0x%04x: %s\n", params->deviceinfo.DevicePropertiesSupported[i], propdesc); in LIBMTP_Dump_Device_Info()
2897 uint16_t prop = params->deviceinfo.DevicePropertiesSupported[i]; in LIBMTP_Dump_Device_Info()
2904 for (i=0;i<params->deviceinfo.ImageFormats_len;i++) { in LIBMTP_Dump_Device_Info()
2911 (void) ptp_render_ofc (params, params->deviceinfo.ImageFormats[i], sizeof(txt), txt); in LIBMTP_Dump_Device_Info()
2912 printf(" %04x: %s\n", params->deviceinfo.ImageFormats[i], txt); in LIBMTP_Dump_Device_Info()
2914 …ret = ptp_mtp_getobjectpropssupported (params, params->deviceinfo.ImageFormats[i], &propcnt, &prop… in LIBMTP_Dump_Device_Info()
2924 ret = ptp_mtp_getobjectpropdesc(params, props[j], params->deviceinfo.ImageFormats[i], &opd); in LIBMTP_Dump_Device_Info()
3079 if (params->deviceinfo.ImageFormats[i] == PTP_OPC_VideoFourCCCodec) { in LIBMTP_Dump_Device_Info()
3256 if (params->deviceinfo.Manufacturer != NULL) { in LIBMTP_Get_Manufacturername()
3257 retmanuf = strdup(params->deviceinfo.Manufacturer); in LIBMTP_Get_Manufacturername()
3275 if (params->deviceinfo.Model != NULL) { in LIBMTP_Get_Modelname()
3276 retmodel = strdup(params->deviceinfo.Model); in LIBMTP_Get_Modelname()
3293 if (params->deviceinfo.SerialNumber != NULL) { in LIBMTP_Get_Serialnumber()
3294 retnumber = strdup(params->deviceinfo.SerialNumber); in LIBMTP_Get_Serialnumber()
3312 if (params->deviceinfo.DeviceVersion != NULL) { in LIBMTP_Get_Deviceversion()
3313 retversion = strdup(params->deviceinfo.DeviceVersion); in LIBMTP_Get_Deviceversion()
3661 localtypes = (uint16_t *) malloc(params->deviceinfo.ImageFormats_len * sizeof(uint16_t)); in LIBMTP_Get_Supported_Filetypes()
3664 for (i=0;i<params->deviceinfo.ImageFormats_len;i++) { in LIBMTP_Get_Supported_Filetypes()
3665 uint16_t localtype = map_ptp_type_to_libmtp_type(params->deviceinfo.ImageFormats[i]); in LIBMTP_Get_Supported_Filetypes()
3673 …localtypes = (uint16_t *) realloc(localtypes, (params->deviceinfo.ImageFormats_len+1) * sizeof(uin… in LIBMTP_Get_Supported_Filetypes()
3679 …localtypes = (uint16_t *) realloc(localtypes, (params->deviceinfo.ImageFormats_len+1) * sizeof(uin… in LIBMTP_Get_Supported_Filetypes()
7057 for ( i=0; i < params->deviceinfo.ImageFormats_len; i++ ) {
7058 if (params->deviceinfo.ImageFormats[i] == objectformat) {