<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">OK, so I enabled again mbim-uuid.h within
generated/Makefile.am.<br>
<br>
But instead of writing a mbim_service_custom_get_string I wrote a
mbim_get_service_string. This function can retrieve service
nickname for any service and is called instead of
mbim_service_get_string that is automatically generated.<br>
<br>
I know the difference between mbim_service_get_string and
mbim_get_service_string is really tiny and can confuse but I have
no better name.<br>
<br>
Arnaud<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 10/04/2014 13:12, Aleksander Morgado
wrote:<br>
</div>
<blockquote
cite="mid:CAAP7ucJ06XR_sg983f6Hu8XACW507ZvaD2sw2Sj1K8p2O+hNew@mail.gmail.com"
type="cite">
<pre wrap="">On Thu, Apr 10, 2014 at 12:01 PM, Arnaud Desmier <a class="moz-txt-link-rfc2396E" href="mailto:adesmier@sequans.com"><adesmier@sequans.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Find attached new patch and thanks for pointing me correct glib APIs :)
By removing mbim-uuid.h from the list of files to parse I also had to
rewrite function mbim_context_type_get_string.
I've added a new unit test function in test-uuid.c to check that any
impacted uuid/service function are working for custom services.
</pre>
</blockquote>
<pre wrap="">
Hum... I just realized; we cannot remove mbim-uuid.h from the
glib-mkenums list as then MbimService and MbimContextType wouldn't be
registered as GEnums any more, and that's an API break.
Could you please re-add mbim-uuid.h, and instead write a new
mbim_service_custom_get_string (guint val)? It's probably not a big
deal to have that one as you already included a
mbim_service_id_is_custom() which we can use to check before printing.
Sorry for not realizing this earlier... :/
BTW; in that mbim_service_id_is_custom(), you can also check first this:
if (id <= MBIM_SERVICE_DSS)
return FALSE;
Last thing, coding-style wise, please recheck the patch and make sure
that a whitespace is always included before parenthesis when calling
methods. Oh, and use /* this */ to comment code, instead of // this.
We're almost there, thanks for that work :)
</pre>
</blockquote>
<br>
<p></p>
<p>-- IMPORTANT NOTICE: </p>
<p>The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.</p></body>
</html>