"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "pms-0.94/pms_export/ADD_MODULE" of archive pms-0.94.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 Short description how to add an module:
    2 
    3 Edit modules_config
    4   - add MODULES+=module/mod_<yourmodulename>.o
    5 
    6 Edit pms_export.h
    7   - add include "modules/mod_<yourmodulename>.h"
    8   - add "<yourmodulename>" to mod_name[] array over NULL entry (do not forget the comma!)
    9   - add <yourmodulemainfunction> to *mod_function[] array over NULL entry (comma!)
   10 
   11 module main function has same structure how an program main() function.
   12 
   13 Create Makefile in your module directory (see existing modules for examples)
   14 
   15 You have written an module?
   16   - Send it to: depries@gmx.de
   17 
   18 See source how to handle database functions.
   19 
   20 Greetings,
   21 Dennis