File: template.mfl

package info (click to toggle)
mailfromd 9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,512 kB
  • sloc: ansic: 56,882; sh: 22,979; yacc: 4,130; lex: 1,428; makefile: 928; lisp: 488; awk: 393; perl: 319; sed: 25
file content (21 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (3)
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