[PATCH] tevent glib event loop glue

Stefan Metzmacher metze at samba.org
Sat Feb 13 08:38:19 UTC 2016


Hi Ralph,

> Attached is a patchset that adds support for polling a glib
> g_main_context from tevent. Later commits make use of it in the mdsvc
> RPC server.
> 
> The second patch adds a test binary that can be used to run query
> Gnome Tracker either using the native glib event loop or tevent.
> 
> I'm still unsure whether we want this added directly to tevent at this
> early stage, or instead better put it to source3/lib/. It makes no
> difference for Samba internal consumers.

I'd prefer to keep in Samba only for now (as lib/util/tevent_glib_glue.[ch])
and adding a 'samba_' prefix to the public function,so that we won't
conflict,
if we later also add this to tevent.

This also means that you need to remove #include "tevent_internal.h"
and use <tevent.h> as it might come from the system.
and use DEBUG() instead of tevent_debug(), but still use
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_TEVENT

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160213/d3f9cc64/signature.sig>


More information about the samba-technical mailing list