In file bbsmod.h:

struct mod_handler

Module handler.

[more]int32 priority
Priority of this handler
[more]int (*handler)(int, char**)
Handler function call


Documentation

Module handler.

This is how a module handler is defined. There is a priority attached to the main-like function pointer handler. When calling multiple modules (e.g. when logging in or out), the handlers are called in order of increasing priority. The entry points are called with pairs of argc and argv arguments, just like main().

oint32 priority
Priority of this handler

oint (*handler)(int, char**)
Handler function call

Deprecated:
Use mod_handler_t instead.

Alphabetic index



This page was generated with the help of DOC++.