[libmm-glib] MM API usage and GLib

Alejandro Vega alexvega48 at gmail.com
Thu Jun 21 07:25:51 UTC 2018


I am currently facing the implementation of a application which makes use
of the libmm-glib high level API and I am facing some problems when I try
to use this API in my C++ application.

Until now in my C++ application I have been using Boost::Asio in order to
manage asynchronous calls and keep the program alive while performing
operations with io.run(). However, when I started using libmm-glib API I
took a look at qmicli (which , if I am not wrong, it is an example of use
of this API) and noticed that it makes use of Glib library.

After making some tests I noticed that io.run() is totally incompatible
with making async queries using g_main_loop_run() as they both launch a
loop separately and I cant find a elegant and working solution to use both.

Keeping in mind that I want to keep using asio to manage the operations in
my application,

- what could be the best way to make use of this API ? (threads,
starting/exiting loop, ...)
- has anyone faced the development of an application in which  Boost::asio
and Glib interact ?

Thank you very much.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180621/df9d5c1c/attachment.html>

More information about the ModemManager-devel mailing list