Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
dc342c8d
Commit
dc342c8d
authored
Jul 03, 2013
by
Stephen Morris
Browse files
[2980] Updated as a result of the second part of the review.
parent
57a25a01
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/hooks/callout_manager.cc
View file @
dc342c8d
...
@@ -38,11 +38,11 @@ CalloutManager::checkLibraryIndex(int library_index) const {
...
@@ -38,11 +38,11 @@ CalloutManager::checkLibraryIndex(int library_index) const {
if
(((
library_index
>=
-
1
)
&&
(
library_index
<=
num_libraries_
))
||
if
(((
library_index
>=
-
1
)
&&
(
library_index
<=
num_libraries_
))
||
(
library_index
==
INT_MAX
))
{
(
library_index
==
INT_MAX
))
{
return
;
return
;
}
else
{
isc_throw
(
NoSuchLibrary
,
"library index "
<<
library_index
<<
" is not valid for the number of loaded libraries ("
<<
num_libraries_
<<
")"
);
}
}
isc_throw
(
NoSuchLibrary
,
"library index "
<<
library_index
<<
" is not valid for the number of loaded libraries ("
<<
num_libraries_
<<
")"
);
}
}
// Set the number of libraries handled by the CalloutManager.
// Set the number of libraries handled by the CalloutManager.
...
...
src/lib/hooks/callout_manager.h
View file @
dc342c8d
...
@@ -41,7 +41,8 @@ public:
...
@@ -41,7 +41,8 @@ public:
/// @brief Callout Manager
/// @brief Callout Manager
///
///
/// This class manages the registration, deregistration and execution of the
/// This class manages the registration, deregistration and execution of the
/// library callouts.
/// library callouts. It is part of the hooks framework used by the BIND 10
/// server, and is not for use by user-written code in a hooks library.
///
///
/// In operation, the class needs to know two items of data:
/// In operation, the class needs to know two items of data:
///
///
...
@@ -377,7 +378,7 @@ private:
...
@@ -377,7 +378,7 @@ private:
/// Vector of callout vectors. There is one entry in this outer vector for
/// Vector of callout vectors. There is one entry in this outer vector for
/// each hook. Each element is itself a vector, with one entry for each
/// each hook. Each element is itself a vector, with one entry for each
/// callout registered for that hook.
/// callout registered for that hook.
std
::
vector
<
CalloutVector
>
hook_vector_
;
std
::
vector
<
CalloutVector
>
hook_vector_
;
/// LibraryHandle object user by the callout to access the callout
/// LibraryHandle object user by the callout to access the callout
/// registration methods on this CalloutManager object. The object is set
/// registration methods on this CalloutManager object. The object is set
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment