aboutsummaryrefslogtreecommitdiffstats
path: root/doc/example_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/example_plugin.c')
-rw-r--r--doc/example_plugin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/example_plugin.c b/doc/example_plugin.c
new file mode 100644
index 00000000..a33907a8
--- /dev/null
+++ b/doc/example_plugin.c
@@ -0,0 +1,14 @@
+/*
+ * This is the most simple possible BitlBee plugin. To use, compile it as
+ * a shared library and place it in the plugin directory:
+ *
+ * gcc -o example.so -shared example.c `pkg-config --cflags bitlbee`
+ * cp example.so /usr/local/lib/bitlbee
+ */
+#include <stdio.h>
+#include <bitlbee.h>
+
+void init_plugin(void)
+{
+ printf("I am a BitlBee plugin!\n");
+}