[exim-dev] [PATCH] Dynamically loaded lookups -- part 1.

Top Page
Delete this message
Reply to this message
Author: David Woodhouse
Date:  
To: exim-dev
Subject: [exim-dev] [PATCH] Dynamically loaded lookups -- part 1.
First step -- make search_findtype() return a 'struct lookup_info *'
instead of an index into the lookup_list[] array. Patch attached.

Next we'll probably want to get rid of lookup_list[] altogether and use
a tree of available lookup types instead. Then we can actually look at
making them dynamically loadable.

I'm slightly dubious about getting rid of lookup_list[], because that'll
mean we have to build the lookup tree at process startup time _every_
time. I wonder if we should use lookup_list[] _and_ a separate tree of
dynamically-added lookup types? Or maybe we can come up with some hack
so the tree is inside the binary is already built correctly?

Either way, this patch would be required first...

--
dwmw2