summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/plugin.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/plugin.h b/include/plugin.h
index 587e9d76..941229d1 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 <connman/plugin.h>
+ *
+ * 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 = { \