# Sablotron Guide and Reference

SablotRegHandler | Functions

#### Summary

Registers new handler.

#### Syntax

    int SablotRegHandler(SablotHandle processor_,
           HandlerType type,
           void *handler,
           void *userData);

Name | Type | Description
--- | --- | ---
`processor_` | `SablotHandle` | processor handle
`type` | `HandlerType` | handler type
`handler` | `void*` | pointer to the handler struct
`userData` | `void*` | user data

#### Description

Registers one of available handlers. The handler type is either of HLR_MESSAGE, HLR_SCHEME, HLR_SAX, HLR_MISC, HLR_ENC. The ``handler'' parameter point to the callback structure.

The stucture format depends on the handler sype specified. Possible callbacks structures are:
`SchemeHandler`, `MessageHandler`, `SAXHandler`, `MiscHandler`, `EncHandler`.

See `.Handlers` for more.

#### See Also

Groups | [ Functions ]
Entries | [ .Handlers | EncHandler | MessageHandler | MiscHandler | SAXHandler | SablotHandle | SchemeHandler ]

© 2002 Ginger Alliance
revision 02-11-04
This page was generated by APIDOC