This email list is read-only. Emails sent to this list will be discarded ---------------------------------- doc/Makefile.am | 2 +- doc/connman-docs.xml | 2 ++ include/plugin.h | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletions(-)
New commits: commit d519532b450d131316351c701ab389e7015a4000 Author: Marcel Holtmann <[email protected]> Date: Tue Dec 30 02:38:46 2008 +0100 Add really simple plugin example to documentation commit 185b4d27799da050c7f823e922cafa7834e9713a Author: Marcel Holtmann <[email protected]> Date: Tue Dec 30 02:10:26 2008 +0100 Fix documentation details Diff in this email is a maximum of 400 lines. diff --git a/doc/Makefile.am b/doc/Makefile.am index 4a52ec2..745841b 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -17,7 +17,7 @@ MKTMPL_OPTIONS = --output-dir=. HFILE_GLOB = $(top_srcdir)/include/*.h CFILE_GLOB = $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h -IGNORE_HFILES = connman connman.h rtnl.h dbus.h iface.h +IGNORE_HFILES = connman connman.h HTML_IMAGES = diff --git a/doc/connman-docs.xml b/doc/connman-docs.xml index 8d51f3b..518c6d1 100644 --- a/doc/connman-docs.xml +++ b/doc/connman-docs.xml @@ -103,6 +103,8 @@ <xi:include href="xml/plugin.xml" /> <xi:include href="xml/security.xml" /> <xi:include href="xml/resolver.xml" /> + <!-- <xi:include href="xml/device.xml" /> --> + <!-- <xi:include href="xml/network.xml" /> --> </reference> <appendix id="license"> 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 <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 = { \ _______________________________________________ Commits mailing list [email protected] https://lists.moblin.org/mailman/listinfo/commits
