Creating multiple clients with one QMI dev

Sai Chaitanya msaichaitanya at gmail.com
Tue Dec 6 14:06:07 UTC 2022


Ok, thanks for the quick reply, but does it mean that I cannot use the same
client for different calls?
something like this for example?

client_cb(...)
{
....
qmi_client_dms_swi_get_current_firmware(...
qmi_client_dms_get_operating_mode(...
....
}
qmi_device_allocate_client(dev, QMI_SERVICE_DMS, ...., client_cb,..)


On Tue, Dec 6, 2022 at 2:13 PM Aleksander Morgado <aleksandermj at chromium.org>
wrote:

> Hey
>
> >
> > Is it allowed to create one QMI device but have multiple clients?
> >
> > In other words, is this kinda code flow allowed with libqmi?
> >
> > qmi_device_new()
> > qmi_device_open()
> > qmi_device_allocate_client(dev, QMI_SERVICE_DMS, ....)
> >
> > qmi_client_dms_swi_get_current_firmware
> > qmi_client_dms_get_operating_mode
> >
> > qmi_device_allocate_client(dev, QMI_SERVICE_UIM, ....)
> > qmi_device_allocate_client(dev, QMI_SERVICE_WDS, ....)
> >
>
> Of course it is yes, that is what ModemManager does really.
> You can even have different clients for the same service (e.g. more
> than one QmiClientWds) created from the same QmiDevice.
>
> --
> Aleksander
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20221206/ad2d185b/attachment.htm>


More information about the libqmi-devel mailing list