Creating multiple clients with one QMI dev
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?
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>
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libqmi-devel