libqmi with python

Andrew Bird ajb at spheresystems.co.uk
Thu Aug 8 05:54:30 PDT 2013


Hi Simone,
	I didn't see any errors in there, only warnings. Each warning is an indication that a function 
to be exported needs some annotation adding, so that the python or other gi backend knows how to 
treat it when generating the binding. For instance annotating a parameter with (out) ensures python 
returns the value in a function return, whereas if there are multiple out parameters, python returns a 
tuple containing each of the values. Without the annotation I don't think you can get at the value. I 
would expect that the functions that don't generate warnings are callable and may even work.

	Did you try your test function get_manufacturer() again?

	I also attached a snippet of python I think was working, but I don't have a machine or 
device to hand at the moment to confirm.

BTW I note the program imports libqmi, I'm not sure if the final module name should be 'Qmi', that 
would seem to be more consistent with other gi modules.

Hope it helps,


Andrew 




On Thursday 08 August 2013 14:04:50 Simone Ferlin-Oliveira wrote:


Thanks Andrew,
I applied each of the patches you sent, and after patch 3...as you suspected...some other warnings 
appeared.
I am trying to see how do I get them into the current libqmi.


generated/qmi-nas.c:54758: Warning: libqmi: 
qmi_message_nas_get_cdma_position_info_output_get_cdma_position_info: argument 
cdma_position_info_basestations: Missing (element-type) annotation
generated/qmi-dms.c:26784: Warning: libqmi: qmi_message_dms_list_stored_images_output_get_list: 
argument list: Missing (element-type) annotation
generated/qmi-nas.c:18846: Warning: libqmi: 
qmi_indication_nas_serving_system_output_get_roaming_indicator_list: argument 
roaming_indicator_list: Missing (element-type) annotation
generated/qmi-nas.c:18994: Warning: libqmi: 
qmi_indication_nas_serving_system_output_get_data_service_capability: argument 
data_service_capability: Missing (element-type) annotation
generated/qmi-nas.c:19058: Warning: libqmi: 
qmi_indication_nas_serving_system_output_get_serving_system: argument 
serving_system_radio_interfaces: Missing (element-type) annotation
generated/qmi-dms.c:18760: Warning: libqmi: qmi_message_dms_read_eri_file_output_get_eri_file: 
argument eri_file: Missing (element-type) annotation
generated/qmi-wms.c:4560: Warning: libqmi: 
qmi_message_wms_raw_write_input_get_raw_message_data: argument 
raw_message_data_raw_data: Missing (element-type) annotation
generated/qmi-wms.c:4600: Warning: libqmi: 
qmi_message_wms_raw_write_input_set_raw_message_data: argument 
raw_message_data_raw_data: Missing (element-type) annotation
generated/qmi-wms.c:10892: Warning: libqmi: qmi_message_wms_get_routes_output_get_route_list: 
argument route_list: Missing (element-type) annotation
generated/qmi-ctl.c:869: Warning: libqmi: qmi_message_ctl_get_version_info_output_get_service_list: 
argument service_list: Missing (element-type) annotation
generated/qmi-nas.c:25267: Warning: libqmi: 
qmi_message_nas_get_rf_band_information_output_get_list: argument list: Missing (element-type) 
annotation
generated/qmi-dms.c:27460: Warning: libqmi: 
qmi_message_dms_delete_stored_image_input_get_image: argument image: Unresolved type: 
'QmiMessageDmsDeleteStoredImageInputImage*'
generated/qmi-dms.c:27492: Warning: libqmi: 
qmi_message_dms_delete_stored_image_input_set_image: argument image: Unresolved type: 
'QmiMessageDmsDeleteStoredImageInputImage*'
generated/qmi-wms.c:9237: Warning: libqmi: 
qmi_message_wms_list_messages_output_get_message_list: argument message_list: Missing 
(element-type) annotation
generated/qmi-dms.c:25617: Warning: libqmi: 
qmi_message_dms_set_firmware_preference_input_get_list: argument list: Missing (element-type) 
annotation
generated/qmi-dms.c:25649: Warning: libqmi: 
qmi_message_dms_set_firmware_preference_input_set_list: argument list: Missing (element-type) 
annotation
generated/qmi-nas.c:1181: Warning: libqmi: 
qmi_message_nas_set_event_report_input_get_sinr_threshold: argument sinr_threshold_thresholds: 
Missing (element-type) annotation
generated/qmi-nas.c:1217: Warning: libqmi: 
qmi_message_nas_set_event_report_input_set_sinr_threshold: argument sinr_threshold_thresholds: 
Missing (element-type) annotation
generated/qmi-nas.c:1246: Warning: libqmi: 
qmi_message_nas_set_event_report_input_get_ecio_threshold: argument ecio_threshold_thresholds: 
Missing (element-type) annotation
generated/qmi-nas.c:1282: Warning: libqmi: 
qmi_message_nas_set_event_report_input_set_ecio_threshold: argument ecio_threshold_thresholds: 
Missing (element-type) annotation
generated/qmi-nas.c:1731: Warning: libqmi: 
qmi_message_nas_set_event_report_input_get_signal_strength_indicator: argument 
signal_strength_indicator_thresholds: Missing (element-type) annotation
generated/qmi-nas.c:1767: Warning: libqmi: 
qmi_message_nas_set_event_report_input_set_signal_strength_indicator: argument 
signal_strength_indicator_thresholds: Missing (element-type) annotation
generated/qmi-nas.c:11195: Warning: libqmi: 
qmi_message_nas_network_scan_output_get_mnc_pcs_digit_include_status: argument 
mnc_pcs_digit_include_status: Missing (element-type) annotation
generated/qmi-nas.c:11227: Warning: libqmi: 
qmi_message_nas_network_scan_output_get_radio_access_technology: argument 
radio_access_technology: Missing (element-type) annotation
generated/qmi-nas.c:11259: Warning: libqmi: 
qmi_message_nas_network_scan_output_get_network_information: argument network_information: 
Missing (element-type) annotation
generated/qmi-wms.c:10004: Warning: libqmi: qmi_message_wms_set_routes_input_get_route_list: 
argument route_list: Missing (element-type) annotation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20130808/0dc365b9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qmi.py
Type: text/x-python
Size: 5334 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20130808/0dc365b9/attachment-0001.py>


More information about the libqmi-devel mailing list