[PATCH] libmm-glib: fix typo in MbimRegistrationFlag

Ben Chan benchan at chromium.org
Tue Feb 18 21:35:11 CET 2014


Thanks, I have another set of patches to fix another typo, from
MBIM_CID_DEVICE_SERVICE_SUBSCRIBER_LIST
to MBIM_CID_DEVICE_SERVICE_SUBSCRIBE_LIST.

But we need to align libmbim and ModemManager. How would you prefer to do
that? Do you prefer a version bump in libmbim?

Ben


On Tue, Feb 18, 2014 at 11:39 AM, Aleksander Morgado <
aleksander at aleksander.es> wrote:

> On 18/02/14 20:27, Ben Chan wrote:
> > This patch renames
> 'MBIM_REGISTRATION_FLAG_MANUAL_PACKET_SERVICE_AUTOMATIC_ATTACH' in
> > MbimRegistrationFlag to
> 'MBIM_REGISTRATION_FLAG_PACKET_SERVICE_AUTOMATIC_ATTACH' to be
> > consistent with the MBIM specification.
> > ---
> > Hi Aleksander,
> >
> > I think this rename shouldn't be too disruptive as neither libmbim nor
> > ModemManager currently uses
> > 'MBIM_REGISTRATION_FLAG_MANUAL_PACKET_SERVICE_AUTOMATIC_ATTACH' in code.
> >
>
> Yeah, let's just fix it, even if it's an API break. I'll add a warning
> in the next release.
>
> BTW, I fixed the commit message to use "libmbim" instead of "libmm".
>
> Pushed, thanks.
>
> > Thanks,
> > Ben
> >
> >  src/libmbim-glib/mbim-enums.h | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/src/libmbim-glib/mbim-enums.h
> b/src/libmbim-glib/mbim-enums.h
> > index 6275537..38e12f0 100644
> > --- a/src/libmbim-glib/mbim-enums.h
> > +++ b/src/libmbim-glib/mbim-enums.h
> > @@ -449,14 +449,14 @@ typedef enum {
> >   * MbimRegistrationFlag:
> >   * @MBIM_REGISTRATION_FLAG_NONE: None.
> >   * @MBIM_REGISTRATION_FLAG_MANUAL_SELECTION_NOT_AVAILABLE: Network
> doesn't support manual network selection.
> > - * @MBIM_REGISTRATION_FLAG_MANUAL_PACKET_SERVICE_AUTOMATIC_ATTACH:
> Modem should auto-attach to the network after registration.
> > + * @MBIM_REGISTRATION_FLAG_PACKET_SERVICE_AUTOMATIC_ATTACH: Modem
> should auto-attach to the network after registration.
> >   *
> >   * Registration flags.
> >   */
> >  typedef enum {
> > -    MBIM_REGISTRATION_FLAG_NONE                                   = 0,
> > -    MBIM_REGISTRATION_FLAG_MANUAL_SELECTION_NOT_AVAILABLE         = 1
> << 0,
> > -    MBIM_REGISTRATION_FLAG_MANUAL_PACKET_SERVICE_AUTOMATIC_ATTACH = 1
> << 2,
> > +    MBIM_REGISTRATION_FLAG_NONE                            = 0,
> > +    MBIM_REGISTRATION_FLAG_MANUAL_SELECTION_NOT_AVAILABLE  = 1 << 0,
> > +    MBIM_REGISTRATION_FLAG_PACKET_SERVICE_AUTOMATIC_ATTACH = 1 << 2,
> >  } MbimRegistrationFlag;
> >
> >
>  /*****************************************************************************/
> >
>
>
> --
> Aleksander
> https://aleksander.es
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libmbim-devel/attachments/20140218/127418bc/attachment.html>


More information about the libmbim-devel mailing list