<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">I am still trying with python and libqmi, from the immense list of warnings I sent earlier, I have a patch that eliminates most of them, but I still have this list below remaining:</div>
<div dir="ltr"><br></div><div>When the output of a message is an array of structs it returns warnings about 'unknown type' from GIRSCAN.</div><div dir="ltr"><br></div><div dir="ltr">Any ideas?</div><div dir="ltr">
<div><br></div><div><div>generated/qmi-dms.c:24968: Warning: libqmi: qmi_message_dms_get_firmware_preference_output_get_list: Unknown type: 'QmiMessageDmsGetFirmwarePreferenceOutputListImage'</div><div>generated/qmi-dms.c:25619: Warning: libqmi: qmi_message_dms_set_firmware_preference_input_get_list: Unknown type: 'QmiMessageDmsSetFirmwarePreferenceInputListImage'</div>

<div>generated/qmi-dms.c:25651: Warning: libqmi: qmi_message_dms_set_firmware_preference_input_set_list: Unknown type: 'QmiMessageDmsSetFirmwarePreferenceInputListImage'</div><div>generated/qmi-dms.c:26786: Warning: libqmi: qmi_message_dms_list_stored_images_output_get_list: Unknown type: 'QmiMessageDmsListStoredImagesOutputListImage'</div>

<div>generated/qmi-nas.c:4072: Warning: libqmi: qmi_indication_nas_event_report_output_get_rf_band_information: Unknown type: 'QmiIndicationNasEventReportOutputRfBandInformationElement'</div><div>generated/qmi-nas.c:8907: Warning: libqmi: qmi_message_nas_get_signal_strength_output_get_error_rate_list: Unknown type: 'QmiMessageNasGetSignalStrengthOutputErrorRateListElement'</div>

<div>generated/qmi-nas.c:9003: Warning: libqmi: qmi_message_nas_get_signal_strength_output_get_ecio_list: Unknown type: 'QmiMessageNasGetSignalStrengthOutputEcioListElement'</div><div>generated/qmi-nas.c:9035: Warning: libqmi: qmi_message_nas_get_signal_strength_output_get_rssi_list: Unknown type: 'QmiMessageNasGetSignalStrengthOutputRssiListElement'</div>

<div>generated/qmi-nas.c:9067: Warning: libqmi: qmi_message_nas_get_signal_strength_output_get_strength_list: Unknown type: 'QmiMessageNasGetSignalStrengthOutputStrengthListElement'</div><div>generated/qmi-nas.c:11197: Warning: libqmi: qmi_message_nas_network_scan_output_get_mnc_pcs_digit_include_status: Unknown type: 'QmiMessageNasNetworkScanOutputMncPcsDigitIncludeStatusElement'</div>

<div>generated/qmi-nas.c:11229: Warning: libqmi: qmi_message_nas_network_scan_output_get_radio_access_technology: Unknown type: 'QmiMessageNasNetworkScanOutputRadioAccessTechnologyElement'</div><div>generated/qmi-nas.c:11261: Warning: libqmi: qmi_message_nas_network_scan_output_get_network_information: Unknown type: 'QmiMessageNasNetworkScanOutputNetworkInformationElement'</div>

<div>generated/qmi-nas.c:14177: Warning: libqmi: qmi_message_nas_get_serving_system_output_get_roaming_indicator_list: Unknown type: 'QmiMessageNasGetServingSystemOutputRoamingIndicatorListElement'</div><div>generated/qmi-nas.c:18848: Warning: libqmi: qmi_indication_nas_serving_system_output_get_roaming_indicator_list: Unknown type: 'QmiIndicationNasServingSystemOutputRoamingIndicatorListElement'</div>

<div>generated/qmi-nas.c:25269: Warning: libqmi: qmi_message_nas_get_rf_band_information_output_get_list: Unknown type: 'QmiMessageNasGetRfBandInformationOutputListElement'</div><div>generated/qmi-nas.c:54761: Warning: libqmi: qmi_message_nas_get_cdma_position_info_output_get_cdma_position_info: Unknown type: 'QmiMessageNasGetCdmaPositionInfoOutputCdmaPositionInfoBasestationsBasestation'</div>

<div>generated/qmi-wms.c:9239: Warning: libqmi: qmi_message_wms_list_messages_output_get_message_list: Unknown type: 'QmiMessageWmsListMessagesOutputMessageListElement'</div><div>generated/qmi-wms.c:10006: Warning: libqmi: qmi_message_wms_set_routes_input_get_route_list: Unknown type: 'QmiMessageWmsSetRoutesInputRouteListElement'</div>

<div>generated/qmi-wms.c:10038: Warning: libqmi: qmi_message_wms_set_routes_input_set_route_list: Unknown type: 'QmiMessageWmsSetRoutesInputRouteListElement'</div><div>generated/qmi-wms.c:10894: Warning: libqmi: qmi_message_wms_get_routes_output_get_route_list: Unknown type: 'QmiMessageWmsGetRoutesOutputRouteListElement'</div>

<div>generated/qmi-ctl.c:871: Warning: libqmi: qmi_message_ctl_get_version_info_output_get_service_list: Unknown type: 'QmiMessageCtlGetVersionInfoOutputServiceListService'</div><div class="im"><div>generated/qmi-dms.c:27460: Warning: libqmi: qmi_message_dms_delete_stored_image_input_get_image: argument image: Unresolved type: 'QmiMessageDmsDeleteStoredImageInputImage*'</div>

<div>generated/qmi-dms.c:27492: Warning: libqmi: qmi_message_dms_delete_stored_image_input_set_image: argument image: Unresolved type: 'QmiMessageDmsDeleteStoredImageInputImage*'</div></div><div class="im"><div>generated/qmi-dms.c:28782: Warning: libqmi: qmi_message_dms_get_stored_image_info_input_get_image: argument image: Unresolved type: 'QmiMessageDmsGetStoredImageInfoInputImage*'</div>

<div>generated/qmi-dms.c:28814: Warning: libqmi: qmi_message_dms_get_stored_image_info_input_set_image: argument image: Unresolved type: 'QmiMessageDmsGetStoredImageInfoInputImage*'</div></div></div><div><br></div>
<div>Thanks,</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 8 August 2013 17:42, Simone Ferlin-Oliveira <span dir="ltr"><<a href="mailto:ferlin@simula.no" target="_blank">ferlin@simula.no</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I see. I am trying the annotations you suggested to fix all these warnings I get because I am mainly interested in NAS and few WDS options.<div>

<br><div>May I ask which devices you test it with?<br><br>Best,</div><div>Simone</div><div>
<div><span></span><br>On Thursday, August 8, 2013, Andrew Bird  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Simone,<br>
          Unfortunately not. What you see in the test python file is
      pretty much all I tried, and then I gave up. For Wader I guess the
      only option is to use static bindings or a rewrite.<br>
      <br>
      Best regards,<br>
      <br>
      Andrew <br>
      <br>
      On 08/08/13 15:24, Simone Ferlin-Oliveira wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Andrew,
        <div>Thank you very much :)</div>
        <div>I will do it with the annotations and see how it turns out.</div>
        <div><br>
        </div>
        <div>Have you played with NAS service as well? Or only DMS and
          WDS?</div>
        <div><br>
        </div>
        <div>Simone</div>
      </div>
      <div><br>
        <br>
        <div>On 8 August 2013 14:54, Andrew Bird <span dir="ltr"><<a>ajb@spheresystems.co.uk</a>></span>
          wrote:<br>
          <blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi
                Simone,</p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
                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.</p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
                Did you try your test function get_manufacturer() again?</p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
                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.</p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">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.</p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
              <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hope
                it helps,</p>
              <span><font color="#888888">
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Andrew
                  </p>
                </font></span>
              <div>
                <div>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On
                    Thursday 08 August 2013 14:04:50 Simone
                    Ferlin-Oliveira wrote:<br>
                  </p>
                  <p style="margin-top:12px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Thanks
                    Andrew,</p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">I
                    applied each of the patches you sent, and after
                    patch 3...as you suspected...some other warnings
                    appeared.</p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">I
                    am trying to see how do I get them into the current
                    libqmi.</p>
                  <p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"></p></div></div></div></blockquote></div></div></blockquote></div>

</blockquote></div></div></div>
</blockquote></div><br></div>
</div></div></div><br></div>