# Sablotron Guide and Reference

EncHandler | Types

#### Summary

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

#### Syntax

           typedef EHDescriptor
           EncHandlerOpen(void* userData,
               SablotHandle processor_,
               int direction, const char *encoding);

           typedef EHResult
           EncHandlerConv(void* userData, SablotHandle processor_,
               EHDescriptor cd, const char** inbuf, size_t *inbytesleft,
               char ** outbuf, size_t *outbytesleft);

           typedef int
           EncHandlerClose(void* userData, SablotHandle processor_,
               EHDescriptor cd);

           typedef struct
           {
               EncHandlerOpen      *open;
               EncHandlerConv      *conv;
               EncHandlerClose     *close;
           } EncHandler;

#### 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