<div dir="ltr">Yes, that worked fine. Thanks.<div><br></div><div>What about these other warnings that also appear:</div><div><div>qmi-enums-wds.h:124: Warning: libqmi: invalid annotation option: CDMA</div><div>qmi-enums-wds.h:125: Warning: libqmi: invalid annotation option: CDMA</div>
<div>qmi-enums-wds.h:126: Warning: libqmi: invalid annotation option: CDMA</div><div>qmi-enums-wds.h:127: Warning: libqmi: invalid annotation option: CDMA</div><div>qmi-enums-wds.h:128: Warning: libqmi: invalid annotation option: GSM/WCDMA</div>
<div>qmi-enums-wds.h:129: Warning: libqmi: invalid annotation option: GSM/WCDMA</div><div>qmi-enums-wds.h:130: Warning: libqmi: invalid annotation option: GSM/WCDMA</div><div>qmi-enums-wds.h:131: Warning: libqmi: invalid annotation option: GSM/WCDMA</div>
<div>qmi-enums-wds.h:132: Warning: libqmi: invalid annotation option: GSM/WCDMA</div></div><div><br></div><div>They are more or less of the same type - annotation problem?! </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 8 August 2013 00:44, Dan Williams <span dir="ltr"><<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, 2013-08-07 at 22:57 +0200, Simone Ferlin-Oliveira wrote:<br>
> Hi Dan,<br>
> I solved the problem from before because I have just seen the main patch<br>
> and its remaining comments here:<br>
> <a href="http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000353.html" target="_blank">http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000353.html</a><br>
><br>
> I followed your comments and the rest of the patch, but I still get one<br>
> warning:<br>
> qmi-device.c:298: Warning: libqmi:<br>
> qmi_device_get_service_version_info_finish: return value: Missing<br>
> (element-type) annotation<br>
<br>
</div>Probably something like:<br>
<br>
* Returns: (transfer container) (element-type QmiDeviceServiceVersionInfo): a<br>
* #GArray of #QmiDeviceServiceVersionInfo elements, or #NULL if @error is set.<br>
* The returned value should be freed with g_array_unref().<br>
<br>
I think it should be 'transfer container' because the array knows how to<br>
dispose of the elements. I'm not 100% sure of the element-type, but<br>
since that's the structure that's getting passed back, I believe that's<br>
how it gets formatted here since the struct is all part of the same<br>
package. This *might* require boxing that struct though.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On 7 August 2013 22:49, Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br>
><br>
> > On Wed, 2013-08-07 at 22:11 +0200, Simone Ferlin-Oliveira wrote:<br>
> > > Thanks,<br>
> > > I compiled libqmi with the patch and trying the sample code in the<br>
> > > mailing-list I get the following error:<br>
> ><br>
> > Which patch is that?<br>
> ><br>
> > Dan<br>
> ><br>
> > > device is ready<br>
> > > device is open<br>
> > > Traceback (most recent call last):<br>
> > > File "./libqmi-test.py", line 25, in device_allocate_client_ready<br>
> > > client = device.allocate_client_finish(result)<br>
> > ><br>
> > > AttributeError: 'Device' object has no attribute 'allocate_client_finish'<br>
> > ><br>
> > > The method is in gir and printing all attributes from the object, the<br>
> > > method is not there:<br>
> > ><br>
> > > ['__class__', '__copy__', '__deepcopy__', '__delattr__', '__dict__',<br>
> > > '__doc__', '__eq__', '__format__', '__gdoc__', '__ge__',<br>
> > > '__getattribute__', '__gpointer__', '__grefcount__', '__gsignals__',<br>
> > > '__gt__', '__gtype__', '__hash__', '__info__', '__init__', '__le__',<br>
> > > '__lt__', '__module__', '__ne__', '__new__', '__reduce__',<br>
> > '__reduce_ex__',<br>
> > > '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__',<br>
> > > '__weakref__', '_force_floating', '_ref', '_ref_sink', '_unref',<br>
> > > '_unsupported_data_method', '_unsupported_method', 'allocate_client',<br>
> > > 'bind_property', 'bind_property_full', 'chain', 'close', 'command',<br>
> > > 'compat_control', 'connect', 'connect_after', 'connect_object',<br>
> > > 'connect_object_after', 'disconnect', 'disconnect_by_func', 'emit',<br>
> > > 'emit_stop_by_name', 'force_floating', 'freeze_notify',<br>
> > 'g_type_instance',<br>
> > > 'get_data', 'get_path', 'get_path_display', 'get_properties',<br>
> > > 'get_property', 'get_qdata', 'get_service_version_info', 'handler_block',<br>
> > > 'handler_block_by_func', 'handler_disconnect', 'handler_is_connected',<br>
> > > 'handler_unblock', 'handler_unblock_by_func', 'init_async',<br>
> > 'init_finish',<br>
> > > 'interface_find_property', 'interface_install_property',<br>
> > > 'interface_list_properties', 'is_floating', 'is_open', 'new',<br>
> > 'new_finish',<br>
> > > 'newv_async', 'notify', 'notify_by_pspec', 'open', 'open_finish',<br>
> > 'parent',<br>
> > > 'priv', 'props', 'qdata', 'ref', 'ref_count', 'ref_sink',<br>
> > 'release_client',<br>
> > > 'release_client_finish', 'replace_data', 'replace_qdata', 'run_dispose',<br>
> > > 'set_data', 'set_instance_id', 'set_instance_id_finish',<br>
> > 'set_properties',<br>
> > > 'set_property', 'steal_data', 'steal_qdata', 'stop_emission',<br>
> > > 'stop_emission_by_name', 'thaw_notify', 'unref', 'watch_closure',<br>
> > > 'weak_ref']<br>
> > ><br>
> > > Any ideas?<br>
> > ><br>
> > ><br>
> > ><br>
> > > On 7 August 2013 17:26, Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br>
> > ><br>
> > > > On Wed, 2013-08-07 at 09:49 +0200, Simone Ferlin-Oliveira wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > > I am wondering if there is any python 'binding' to work with libqmi?<br>
> > > > > I found few links in the mailing list, but no follow up.<br>
> > > ><br>
> > > > Not at the moment. The best way is likely to add GObject Introspection<br>
> > > > annotations so that the existing Python GOI infrastructure could be<br>
> > > > utilized.<br>
> > > ><br>
> > > > Dan<br>
> > > ><br>
> > > ><br>
> > > _______________________________________________<br>
> > > libqmi-devel mailing list<br>
> > > <a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a><br>
> > > <a href="http://lists.freedesktop.org/mailman/listinfo/libqmi-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br>
> ><br>
> ><br>
> ><br>
> _______________________________________________<br>
> libqmi-devel mailing list<br>
> <a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/libqmi-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>