mirror of
https://github.com/matrix-construct/construct
synced 2024-11-14 14:01:08 +01:00
modules: Add example to readme.
This commit is contained in:
parent
c147c28808
commit
9563781e35
1 changed files with 14 additions and 0 deletions
|
@ -49,6 +49,20 @@ either in the module.
|
|||
name of `IRCD_MODULE`. This is an object which will be sought by the module
|
||||
loader in libircd.
|
||||
|
||||
```
|
||||
// Example of a trivial module
|
||||
|
||||
ircd::mapi::header
|
||||
IRCD_MODULE
|
||||
{
|
||||
"My Module", []
|
||||
{
|
||||
puts("hi\n");
|
||||
}
|
||||
};
|
||||
|
||||
```
|
||||
|
||||
2. Add an `_la_SOURCES` entry for your module in the appropriate place in
|
||||
Makefile.am.
|
||||
|
||||
|
|
Loading…
Reference in a new issue