inet: Add function to check if IPv6 is supported by kernel
[platform/upstream/connman.git] / doc / plugin-api.txt
1 Plugin programming interface
2 ****************************
3
4
5 Plugin basics
6 =============
7
8 The Connection Manager supports plugins for various actions. The basic plugin
9 contains of plugin description via CONNMAN_PLUGIN_DEFINE and also init/exit
10 callbacks defined through that description.
11
12 #include <connman/plugin.h>
13
14 static int example_init(void)
15 {
16         return 0;
17 }
18
19 static void example_exit(void)
20 {
21 }
22
23 CONNMAN_PLUGIN_DEFINE(example, "Example plugin", CONNMAN_VERSION,
24                                                 example_init, example_exit)