Adding new MBIM extension CID?
Aleksander Morgado
aleksander at aleksander.es
Thu Apr 10 04:12:00 PDT 2014
On Thu, Apr 10, 2014 at 12:01 PM, Arnaud Desmier <adesmier at sequans.com> wrote:
> 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.
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 :)
--
Aleksander
https://aleksander.es
More information about the libmbim-devel
mailing list