]> git.ipfire.org Git - thirdparty/kea.git/commit
[5332] Pass II on lease_cmds, refactored handlers to accept CalloutHandle
authorThomas Markwalder <tmark@isc.org>
Fri, 22 Sep 2017 15:15:25 +0000 (11:15 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 22 Sep 2017 15:15:25 +0000 (11:15 -0400)
commit831126df7995506156c126503dcb05baca51e495
tree23b66f68bf897e7244a30aa54170da2c9390485c
parent03636abdf601f2806f6b17c44f8fbed048d0b3c7
[5332] Pass II on lease_cmds, refactored handlers to accept CalloutHandle

Refactored the LeaseCmd(Impl) handlers to accept CalloutHandle rather
than command name and arguments. This does two things:

1. Passes the context into the handlers, should we ever want to
pass additional information into or out of the handlers

2. Greatly reduces code clutter
src/hooks/dhcp/lease_cmds/lease_cmds.cc
src/hooks/dhcp/lease_cmds/lease_cmds.h
src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc