Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| devel:create-library [2012/03/18 13:53] – old revision restored 216.194.53.237 | devel:create-library [2012/11/11 15:58] (current) – old revision restored oej | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | T6X3wL , [url=http://kssjclkwgnwi.com/ | + | ====== How-To: Create and use a library in SIP Router ====== |
| + | |||
| + | ===== Create a library ===== | ||
| + | |||
| + | * make a new directory in '' | ||
| + | * copy there the Makefile from '' | ||
| + | * add your '' | ||
| + | |||
| + | ===== Use a library from a module ===== | ||
| + | |||
| + | * add to the module' | ||
| + | |||
| + | < | ||
| + | SERLIBPATH=../../lib | ||
| + | # libraries, in the format path/shortname | ||
| + | # what will be used for -l | ||
| + | SER_LIBS=$(SERLIBPATH)/print/print | ||
| + | </code> | ||
| + | |||
| + | Compiling the module will re-compile the library automatically if needed (e.g. some change in it). '' | ||