From d519532b450d131316351c701ab389e7015a4000 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 30 Dec 2008 02:38:46 +0100 Subject: [PATCH] Add really simple plugin example to documentation --- include/plugin.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/plugin.h b/include/plugin.h index 587e9d7..941229d 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -49,6 +49,22 @@ struct connman_plugin_desc { * @exit: exit function called on plugin removal * * Macro for defining a plugin descriptor + * + * |[ + * #include + * + * static int example_init(void) + * { + * return 0; + * } + * + * static void example_exit(void) + * { + * } + * + * CONNMAN_PLUGIN_DEFINE(example, "Example plugin", VERSION, + * example_init, example_exit) + * ]| */ #define CONNMAN_PLUGIN_DEFINE(name, description, version, init, exit) \ struct connman_plugin_desc connman_plugin_desc = { \ -- 2.7.4