# Sablotron Guide and Reference

MessageHandler | Types

#### Summary

This type is used to provide the Sablotron engine with a callback structure for a message handler.

#### Syntax

           typedef MH_ERROR
           MessageHandlerMakeCode(
               void *userData, SablotHandle processor_,
               int severity, unsigned short facility, unsigned short code);

           typedef MH_ERROR
           MessageHandlerLog(
               void *userData, SablotHandle processor_,
               MH_ERROR code, MH_LEVEL level, char **fields);

           typedef MH_ERROR
           MessageHandlerError(void *userData, SablotHandle processor_,
               MH_ERROR code, MH_LEVEL level, char **fields);

           typedef struct
           {
               MessageHandlerMakeCode *makeCode;
               MessageHandlerLog *log;
               MessageHandlerError *error;
           } MessageHandler;

#### Notes

See the shandler.h file for more comments.

#### See Also

Groups | [ Types ]

© 2002-2003 Ginger Alliance
revision 03-06-30
This page was generated by APIDOC