# Sablotron Guide and Reference

SchemeHandler | Types
#### Summary This type is used to provide the Sablotron engine with a callback structure for a scheme handler.
#### Syntax
           typedef int
           SchemeHandlerGetAll(void *userData,
               SablotHandle processor_,
               const char *scheme, const char *rest,
               char **buffer, int *byteCount);

           typedef int
           SchemeHandlerFreeMemory(void *userData,
               SablotHandle processor_,
               char *buffer);

           typedef int
           SchemeHandlerOpen(void *userData,
               SablotHandle processor_,
               const char *scheme,
               const char *rest, int *handle);

           typedef int
           SchemeHandlerGet(void *userData,
               SablotHandle processor_,
               int handle, char *buffer, int *byteCount);

           typedef int
           SchemeHandlerPut(void *userData,
               SablotHandle processor_,
               int handle, const char *buffer, int *byteCount);

           typedef int
           SchemeHandlerClose(void *userData,
               SablotHandle processor_,
               int handle);

           typedef struct
           {
               SchemeHandlerGetAll *getAll;
               SchemeHandlerFreeMemory *freeMemory;
               SchemeHandlerOpen *open;
               SchemeHandlerGet *get;
               SchemeHandlerPut *put;
               SchemeHandlerClose *close;
           } SchemeHandler;
#### 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