1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
/* A stub file for the <MODNAME> module. Edit it and remove this comment. */
module '<MODNAME>'.
/* Loadable library name */
static string libname "mfmod_<MODNAME>.so"
/* Library handle */
static number libh -1
/* Open the loadable library when this module is loaded into memory. */
prog startup
do
set libh dlopen(libname)
done
/* Return version of <MODNAME> as a string */
func version()
returns string
do
dlcall(libh, "version", "")
return dlresult_string(libh)
done
|