Been reviewing woobie module and learning some C...
Have a few questions though...
- Why is module_start declared as a char?
/* This function table is exported and may be used by other modules and
* the core.
*
* The first four have to be defined (you may define them as NULL), as
* they are checked by eggdrop core.
*/
static Function woobie_table[] = {
(Function) woobie_start,
(Function) woobie_close,
(Function) woobie_expmem,
(Function) woobie_report,
};
- How would i define them as NULL?
Make a function and just put return NULL; ?
- How can I make my module kill/stop eggdrop from loading if sanity checking I implement fails?