libqmi with python

Simone Ferlin-Oliveira ferlin at simula.no
Thu Aug 8 05:04:50 PDT 2013


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
generated/qmi-wms.c:10036: Warning: libqmi:
qmi_message_wms_set_routes_input_set_route_list: argument route_list:
Missing (element-type) annotation
generated/qmi-wds.c:8530: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_pcscf_server_address_list:
argument pcscf_server_address_list: Missing (element-type) annotation
generated/qmi-wds.c:8562: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_pcscf_domain_name_list:
argument pcscf_domain_name_list: Missing (element-type) annotation
generated/qmi-wds.c:8594: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_ipv6_address: argument
ipv6_address_address: Missing (element-type) annotation
generated/qmi-wds.c:8630: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_ipv6_gateway_address:
argument ipv6_gateway_address_address: Missing (element-type) annotation
generated/qmi-wds.c:8666: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_ipv6_primary_dns_address:
argument ipv6_primary_dns_address: Missing (element-type) annotation
generated/qmi-wds.c:8698: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_ipv6_secondary_dns_address:
argument ipv6_secondary_dns_address: Missing (element-type) annotation
generated/qmi-wds.c:8762: Warning: libqmi:
qmi_message_wds_get_current_settings_output_get_domain_name_list: argument
domain_name_list: Missing (element-type) annotation
generated/qmi-nas.c:14175: Warning: libqmi:
qmi_message_nas_get_serving_system_output_get_roaming_indicator_list:
argument roaming_indicator_list: Missing (element-type) annotation
generated/qmi-nas.c:14323: Warning: libqmi:
qmi_message_nas_get_serving_system_output_get_data_service_capability:
argument data_service_capability: Missing (element-type) annotation
generated/qmi-nas.c:14387: Warning: libqmi:
qmi_message_nas_get_serving_system_output_get_serving_system: argument
serving_system_radio_interfaces: Missing (element-type) annotation
generated/qmi-dms.c:24966: Warning: libqmi:
qmi_message_dms_get_firmware_preference_output_get_list: argument list:
Missing (element-type) annotation
generated/qmi-nas.c:50031: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_rscp_threshold: argument
rscp_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50063: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_rscp_threshold: argument
rscp_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50152: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_rsrp_threshold: argument
rsrp_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50184: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_rsrp_threshold: argument
rsrp_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50210: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_rsrq_threshold: argument
rsrq_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50242: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_rsrq_threshold: argument
rsrq_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50268: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_io_threshold: argument
io_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50300: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_io_threshold: argument
io_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50326: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_lte_snr_threshold: argument
lte_snr_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50358: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_lte_snr_threshold: argument
lte_snr_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50384: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_sinr_threshold: argument
sinr_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50416: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_sinr_threshold: argument
sinr_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50442: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_ecio_threshold: argument
ecio_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50474: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_ecio_threshold: argument
ecio_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50500: Warning: libqmi:
qmi_message_nas_config_signal_info_input_get_rssi_threshold: argument
rssi_threshold: Missing (element-type) annotation
generated/qmi-nas.c:50532: Warning: libqmi:
qmi_message_nas_config_signal_info_input_set_rssi_threshold: argument
rssi_threshold: Missing (element-type) annotation
generated/qmi-dms.c:18119: Warning: libqmi:
qmi_message_dms_write_user_data_input_get_user_data: argument user_data:
Missing (element-type) annotation
generated/qmi-dms.c:18151: Warning: libqmi:
qmi_message_dms_write_user_data_input_set_user_data: argument user_data:
Missing (element-type) annotation
generated/qmi-dms.c:3644: Warning: libqmi:
qmi_message_dms_get_capabilities_output_get_info: argument
info_radio_interface_list: Missing (element-type) annotation
generated/qmi-wms.c:2686: Warning: libqmi:
qmi_message_wms_raw_send_input_get_raw_message_data: argument
raw_message_data_raw_data: Missing (element-type) annotation
generated/qmi-wms.c:2722: Warning: libqmi:
qmi_message_wms_raw_send_input_set_raw_message_data: argument
raw_message_data_raw_data: Missing (element-type) annotation
generated/qmi-dms.c:14822: Warning: libqmi:
qmi_message_dms_activate_manual_input_get_prl: argument prl_prl_segment:
Missing (element-type) annotation
generated/qmi-dms.c:14862: Warning: libqmi:
qmi_message_dms_activate_manual_input_set_prl: argument prl_prl_segment:
Missing (element-type) annotation
generated/qmi-dms.c:28782: Warning: libqmi:
qmi_message_dms_get_stored_image_info_input_get_image: argument image:
Unresolved type: 'QmiMessageDmsGetStoredImageInfoInputImage*'
generated/qmi-dms.c:28814: Warning: libqmi:
qmi_message_dms_get_stored_image_info_input_set_image: argument image:
Unresolved type: 'QmiMessageDmsGetStoredImageInfoInputImage*'
generated/qmi-dms.c:25947: Warning: libqmi:
qmi_message_dms_set_firmware_preference_output_get_image_download_list:
argument image_download_list: Missing (element-type) annotation
generated/qmi-dms.c:17702: Warning: libqmi:
qmi_message_dms_read_user_data_output_get_user_data: argument user_data:
Missing (element-type) annotation
generated/qmi-nas.c:8905: Warning: libqmi:
qmi_message_nas_get_signal_strength_output_get_error_rate_list: argument
error_rate_list: Missing (element-type) annotation
generated/qmi-nas.c:9001: Warning: libqmi:
qmi_message_nas_get_signal_strength_output_get_ecio_list: argument
ecio_list: Missing (element-type) annotation
generated/qmi-nas.c:9033: Warning: libqmi:
qmi_message_nas_get_signal_strength_output_get_rssi_list: argument
rssi_list: Missing (element-type) annotation
generated/qmi-nas.c:9065: Warning: libqmi:
qmi_message_nas_get_signal_strength_output_get_strength_list: argument
strength_list: Missing (element-type) annotation
generated/qmi-nas.c:4070: Warning: libqmi:
qmi_indication_nas_event_report_output_get_rf_band_information: argument
rf_band_information: Missing (element-type) annotation
generated/qmi-wms.c:1069: Warning: libqmi:
qmi_indication_wms_event_report_output_get_etws_message: argument
etws_message_raw_data: Missing (element-type) annotation
generated/qmi-wms.c:1137: Warning: libqmi:
qmi_indication_wms_event_report_output_get_transfer_route_mt_message:
argument transfer_route_mt_message_raw_data: Missing (element-type)
annotation
generated/qmi-wms.c:5810: Warning: libqmi:
qmi_message_wms_raw_read_output_get_raw_message_data: argument
raw_message_data_raw_data: Missing (element-type) annotation




On 8 August 2013 12:33, Andrew Bird <ajb at spheresystems.co.uk> wrote:

> **
>
> Hi Simone,
>
> I stopped working on this, just after making it work when I discovered
> that the project (Wader) I wanted this for could only use static not gi
> bindings without a rewrite. At the time backward compatibility right back
> to Ubuntu 8.04 was important, hence the drop. I always intended to clean up
> what I'd done and submit it to the list, but time and the fast pace of
> libqmi wasn't on my side.
>
> I've attached the remaining patches I have left here in my repo, they
> should apply straight after those sent to the list(cc'd). I think the
> missing portion you want is the generation of bindings for things that are
> autogenerated. Incidentally one of the commit logs does report the
> get_manufacturer call as working. I'm not sure if they'll apply to the
> current HEAD, or even work if you can. Feel free to use them as a basis for
> further refinement, perhaps you can get them into libqmi proper?
>
>
>
> Have fun,
>
>
>
>
>
> Andrew
>
>
>
>
>
>
>
>
>
> On Thursday 08 August 2013 12:03:27 Simone Ferlin-Oliveira wrote:
>
> Hi Andrew,
>
>
> I applied the patch you did to add introspection for python and libqmi.
>
> First of all, thanks a lot for the effort and  the documentation!
>
> Here is the link for the patch:
>
>
> http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000353.html
>
>
>
> I used the code sample you had online:
>
>
> http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000363.html
>
>
> and I get something like this:
>
> Traceback (most recent call last):
>
>   File "./gi-libqmi.py", line 32, in device_allocate_client_ready
>
>     client.get_manufacturer(WontTakeNone, 15, None,
> get_manufacturer_ready, None)
>
> AttributeError: '__main__.QmiClientDms' object has no attribute
> 'get_manufacturer'
>
>
> I followed some of your discussion with Alexander in the list, but I sould
> not completely understand what was the issue here.
>
> I see in the doc that get_manufacter ist not there though:
>
> https://developer.gnome.org/libqmi-glib/1.0/QmiClient.html
>
>
> Is it supposed to be like this?
>
>
> Thanks,
>
> Simone
>
>
>
> -----------
>
> This is a print dir of the object:
>
>
> device is ready
>
> device is open
>
> allocated
>
>
> ['__class__', '__copy__', '__deepcopy__', '__delattr__', '__dict__',
> '__doc__', '__eq__', '__format__', '__gdoc__', '__ge__',
> '__getattribute__', '__gpointer__', '__grefcount__', '__gsignals__',
> '__gt__', '__gtype__', '__hash__', '__info__', '__init__', '__le__',
> '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
> '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__',
> '_force_floating', '_ref', '_ref_sink', '_unref',
> '_unsupported_data_method', '_unsupported_method', 'bind_property',
> 'bind_property_full', 'chain', 'check_version', 'compat_control',
> 'connect', 'connect_after', 'connect_object', 'connect_object_after',
> 'disconnect', 'disconnect_by_func', 'do_process_indication', 'emit',
> 'emit_stop_by_name', 'force_floating', 'freeze_notify', 'g_type_instance',
> 'get_cid', 'get_data', 'get_device', 'get_next_transaction_id',
> 'get_properties', 'get_property', 'get_qdata', 'get_service',
> 'get_version', 'handler_block', 'handler_block_by_func',
> 'handler_disconnect', 'handler_is_connected', 'handler_unblock',
> 'handler_unblock_by_func', 'interface_find_property',
> 'interface_install_property', 'interface_list_properties', 'is_floating',
> 'new', 'notify', 'notify_by_pspec', 'parent', 'peek_device', 'priv',
> 'process_indication', 'props', 'qdata', 'ref', 'ref_count', 'ref_sink',
> 'replace_data', 'replace_qdata', 'run_dispose', 'set_data',
> 'set_properties', 'set_property', 'steal_data', 'steal_qdata',
> 'stop_emission', 'stop_emission_by_name', 'thaw_notify', 'unref',
> 'watch_closure', 'weak_ref']
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20130808/881f876d/attachment-0001.html>


More information about the libqmi-devel mailing list