[bind10-dev] Update of BIND 10 DHCP Hooks Design Document
Stephen Morris
stephen at isc.org
Mon Sep 26 10:24:51 UTC 2011
On 21/09/2011 08:44, Michal 'vorner' Vaner wrote:
> Hello
>
> On Wed, Sep 07, 2011 at 05:38:51PM +0100, Stephen Morris wrote:
>> http://bind10.isc.org/wiki/DhcpHooks
>
> Sorry for looking at it after a longish time. I noticed one thing: the interface
> looks a lot C-like (returning ints which are interpretted somehow, passing void
> * pointers around). Shouldn't we do something that is C++-like, having a
> template hook chain class that would pass any kind of object through the
> interface and would return some kind of Enum?
>
> Thanks
>
The idea is not to restrict the language in which the hooks can be
written. A simple C-like interface allows the hooks to be written in C
as well as C++.
Stephen
More information about the bind10-dev
mailing list