[PATCH 1/2] huawei: store modem model in MMBroadbandModemHuaweiPrivate

Ben Chan benchan at chromium.org
Wed Aug 14 00:03:45 PDT 2013


On Tue, Aug 13, 2013 at 11:00 PM, Aleksander Morgado
<aleksander at lanedo.com>wrote:

> On 13/08/13 19:31, Dan Williams wrote:
> >> Is mm_gdbus_* expected to be called from a plugin?  I don't find any
> plugin
> >> > using mm_gdbus_* and wonder if there is a reason for that.
> > Yeah, I wondered about that.  But the core code does it, and there's got
> > to be a simple way for the plugins to easily access common properties
> > like model/vendor/etc, so I figured why not give a try :)  I'll defer to
> > Aleksander though to see if he had some reason.
>
> How about a const gchar *mm_iface_modem_get_model() which internally
> gets the string from the skeleton? Internally in the code we do get the
> skeleton multiple times, but usually always within the interface
> implementation where that skeleton is a property. Cross-interface
> skeleton retrievals, or skeleton retrievals from within the specific
> object implementations are usually avoided, or at least that was the
> intended purpose.
>
>
Thanks. I've revised the patches to use the mm_iface_modem_get_model
approach. Do mm_gdbus_* actually call through DBus to read a property?


> --
> Aleksander
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20130814/a7264a2f/attachment.html>


More information about the ModemManager-devel mailing list