Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
1ae2321d
Commit
1ae2321d
authored
Oct 17, 2012
by
Michal 'vorner' Vaner
Browse files
[2207] Better documentation for LoadAction
parent
03b8bddd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/load_action.h
View file @
1ae2321d
...
...
@@ -28,9 +28,14 @@ class ZoneData;
/// \brief Callback to load data into the memory
///
/// This callback should create new ZoneData (allocated from the passed
/// memory segment) and fill it with relevant loaded data. The caller
/// of the callback takes ownership of the ZoneData.
/// This is called from the ZoneWriter whenever there's need to load the
/// zone data. The callback should allocate new ZoneData and fill it with
/// the zone content. It is up to the callback to know where or how to
/// load the data, or even the origin and class of the zone (it is assumed
/// the callback will be some kind of functor).
///
/// All data should be allocated from the passed MemorySegment. The ownership
/// is passed onto the caller.
///
/// It must not return NULL.
typedef
boost
::
function
<
ZoneData
*
(
util
::
MemorySegment
&
)
>
LoadAction
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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