On Mon, Aug 25, 2014 at 11:24:48PM +0200, Tom Gundersen wrote: > On Wed, Aug 20, 2014 at 7:08 PM, Simon McVittie > <simon.mcvit...@collabora.co.uk> wrote: > > On 20/08/14 16:28, Tom Gundersen wrote: > >> +int attach_sd_event_to_g_main_loop(GMainLoop *loop, sd_event *event) { > > > > (I know this is only a proof of concept but) > > > > I think the construct you're looking for is a GMainContext, not a GMainLoop: > > > > https://tecnocode.co.uk/2014/03/27/what-is-gmaincontext/ > > > > (I know many event frameworks conflate the two.) > > Thanks for the hint Simon. > > I have now pushed an updated version of this example integration to my > private branch: > <http://cgit.freedesktop.org/~tomegun/systemd/tree/src/network/glib-event-glue.c?h=glib-sd-event>. > The necessary sd-event patch has also been pushed upstream. > > As Lennart suggested, this should be included in the relevant > man-pages once we get them. Please push the example as a .c file in man/. It can be included in the final manpage with <xi:include>.
Zbyszek _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel