warawicht / janus-helloworld-plugin

Simplest possible plugin for Janus. Intended as a instructional sample for plugin builders.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Janus "hello world" plugin

It was a big pain in the butt to figure out how to independently build plugins and event handlers for Janus outside of the Janus repository build scripts, so here is a skeleton for building them using autotools.

The plugins/ directory contains a simple plugin, and the events/ directory contains a simple event handler. You can build them both with make at the top level, or build them individually in their respective directories.

The samples given are compatible with an old version of Janus (0.4.3). They will likely require modification to work correctly with newer versions. However, the build process and general plugin structure AFAIK has stayed the same.

./bootstrap
./configure --prefix=/opt/janus  # or wherever your janus install lives
make
make install  # installs into /opt/janus/lib/janus/plugins and /opt/janus/lib/janus/events

About

Simplest possible plugin for Janus. Intended as a instructional sample for plugin builders.

License:Mozilla Public License 2.0


Languages

Language:C 88.8%Language:Makefile 8.2%Language:M4 2.5%Language:Shell 0.6%