<command>hooks-libraries</command> keyword in the
configuration for that process. (Note that
the word "hooks" is plural). The value of the keyword
- is an array of strings, each string corresponding to a hooks library.
- For example, to set up two hooks libraries for the DHCPv4 server, the
- configuration would be:
+ is an array of map structures, each structure corresponding to a hooks
+ library. For example, to set up two hooks libraries for the DHCPv4
+ server, the configuration would be:
<screen>
<userinput>"Dhcp4": {
:
<para>
To ease the transtion, the old syntax is still accepted, although a
warning message is issued when it is encountered. Users are urged
- to switch to the new syntax as the old syntax will be withdrawn when
- parameters are finally added to Kea.
+ to switch to the new syntax as soon as pssible: the old syntax will
+ be withdrawn when parameters are finally added to Kea.
</para></note>
<para>
Notes:
"hooks-libraries": [
{
"library": "/usr/local/lib/example.so"
- },
- {
- :
}
- :
+ ]
+ :
}
@endcode
(Note that "hooks" is plural.)
parlance) that holds the following element:
- library - the name of the library to load. This must be a string.
-The DHCPv4 server will load the library and execute the callouts each time a
-request is received.
-
@note The syntax of the hooks-libraries configuration element has changed
since kea 0.9.2 (in that version, "hooks-libraries" was just a list of
libraries). This change is in preparation for the introduction of
-library-=specific parameters, which will be added to Kea in a version after 1.0.
+library-specific parameters, which will be added to Kea in a version after 1.0.
+
+The DHCPv4 server will load the library and execute the callouts each time a
+request is received.
-@note The above assumes that the hooks library will be used with a version of
-Kea that is dynamically-linked. For information regarding running
-hooks libraries against a statically-linked Kea, see
-@ref hooksdgStaticallyLinkedKea.
+@note All the above assumes that the hooks library will be used with a
+version of Kea that is dynamically-linked. For information regarding
+running hooks libraries against a statically-linked Kea, see @ref
+hooksdgStaticallyLinkedKea.
@section hooksdgAdvancedTopics Advanced Topics