Name
annotate_batch — Allow a module to assume responsibility for batch annotation
Synopsis
#include "hooks/core/annotate_batch.h"
| int **core_annotate_batch** (
| closure, | |
| | head)
; | |
Description
This hook allows a module to assume responsibility for batch annotation. Add the custom annotation to the message context of each message in the batch. When using this hook you must also use the assess_batch
hook to read this custom annotation.
- closure
-
A pointer to the closure function.
- head
-
This parameter is the
sp_async_message
head pointer that contains the whole batch. For a description of this data type see sp_async_message.
If this hook returns 1
, then the standard batch annotation is not performed and no other implementations of this hook are called.
This hook will be called in the Scheduler
thread.