Is it right to use (parts of) GLib without calling g_main_loop_run? If so, how can I identify which parts of GLib I can use this way?
I am most interested in (as mentioned by https://developer.gnome.org/glib/2.34/index.html ):
- GLib data types;
- GLib utilities.
Common sense tells me that there should not be anything GMainLoop would require (except for Timers, maybe?), But I'm a complete newbie to GLib and for some reason did not find an explicit expression in the documents when GMainLoop is required and when not.
In the section “Basic GLib Application Support”, I would like to use Message Logging, but I'm not sure about this interaction with the main loop.
For those who wonder why, I use FUSE / osxfuse, which already has its own main loop, and I'm not sure how easy it is to deconstruct it and integrate into GMainLoop.
In addition, I welcome the alternative suggestions of the C library. Looking at the GLib docs, I like it, but I feel awkward trying to be a framework, not a collection of libraries.
source share