Chapter 4. Notes For Module Authors

This chapter contains notes and other miscellaneous information useful to module authors.

4.1. Writing New Modules

When writing a new module, you should try to adhere to the way existing modules are laid out and constructed. There is no better documentation than the source code itself, so study and dissect the existing modules carefully before attempting to write your own from scratch. Experiment with changing existing modules to see how the changes affect the module behavior, and be sure to familiarize yourself with the API functions and use them whenever possible to avoid duplication of effort.