I'm having trouble finding documentation about how to write event
triggers. The chapter in the documentation
http://stream.boxwatch.ru/docs/devel/static/event-triggers.html
says they can be written in C or supported PLs, but does not explain it
any further. Is there any documentation for it?