AceT_Decoder_Plugin_Init_Proc
Abstract
Callback: Used to initialize a custom decoder plug-in.
Syntax
<decoder_name>_ace_decoder_init (plugin_ptr)
| Argument | Type | Description |
|---|---|---|
plugin_ptr |
AceT_Decoder_Plugin * |
Data structure to be filled in with the lists and callbacks used by this custom decoder. |
Return Type
int
Status (1 for success, 0 for failure).
Header
ace_client_api.h
Example
int
op_http_ace_decoder_init (AceT_Decoder_Plugin * plugin_ptr)
{
/* PURPOSE: To setup the callbacks and information about the decoder */
/* in advance. */
/* RETURNS: Success or Failure, 1 or 0 */
FIN (op_http_ace_decoder_init);
plugin_ptr->decode_proc = (AceT_Decoder_Decode_Proc) op_http_decoder_decode;
plugin_ptr->details_proc = (AceT_Decoder_Details_Proc) op_http_decoder_details;
plugin_ptr->protocols_lptr = prg_list_create ();
prg_list_strings_append (plugin_ptr->protocols_lptr, "HTTP", VOSC_NIL);
FRET (1);
}
Details
Riverbed analysis software calls this function during initialization of Transaction Analyzer. This callback is responsible for filling in the AceT_Decoder_Plugin data structure for the custom decoder. Only the fields needed by the decoder must be filled.
This callback must be named <decoder_name>_ace_decoder_init, where <decoder_name> matches the name of the file in which the callback is defined (that is, <decoder_name>.ets.c).