Use a more idiomatic GIO-like API
@debarshir
Submitted by Debarshi Ray Assigned to gri..@..e.bugs
Link to original bug (#762496)
Description
It would be nice if Grilo's asynchronous functions had a idiomatic GIO-like pattern with GCancellables, GAsyncReadyCallbacks, etc..
More importantly, the synchronous functions are not usable from inside a threaded path because they get stuck and never return. As far as I can tell, this is due to not using a thread default GMainContext. Again, something that is typical in GIO-land, when a synchronous method is implemented in terms of its asynchronous counterpart.
It can be worked around by using the async variant and wrapping it around a thread default GMainContext and running a GMainLoop.