Add documentation for the drivers
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2008 05:25:31 +0000 (07:25 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2008 05:25:31 +0000 (07:25 +0200)
doc/Makefile.am
doc/connman-docs.xml
include/driver.h
src/element.c

index 213deb5..0c237a3 100644 (file)
@@ -18,7 +18,7 @@ HFILE_GLOB = $(top_srcdir)/include/*.h
 CFILE_GLOB = $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h
 
 IGNORE_HFILES = connman connman.h supplicant.h \
-               iface.h rtnl.h dbus.h element.h property.h driver.h
+               iface.h rtnl.h dbus.h element.h property.h
 
 HTML_IMAGES =
 
index 0460192..d3b69b8 100644 (file)
@@ -67,6 +67,7 @@
     <xi:include href="xml/log.xml" />
     <xi:include href="xml/plugin.xml" />
     <xi:include href="xml/security.xml" />
+    <xi:include href="xml/driver.xml" />
   </reference>
 
   <appendix id="license">
index 8076a0e..6d212d8 100644 (file)
@@ -28,6 +28,12 @@ extern "C" {
 
 #include <connman/element.h>
 
+/**
+ * SECTION:driver
+ * @title: Driver premitives
+ * @short_description: Functions for registering drivers
+ */
+
 #define CONNMAN_DRIVER_PRIORITY_LOW      -100
 #define CONNMAN_DRIVER_PRIORITY_DEFAULT     0
 #define CONNMAN_DRIVER_PRIORITY_HIGH      100
index db7cb4e..66c91d0 100644 (file)
@@ -363,6 +363,14 @@ static gboolean probe_driver(GNode *node, gpointer data)
        return FALSE;
 }
 
+/**
+ * connman_driver_register:
+ * @driver: driver definition
+ *
+ * Register a new driver
+ *
+ * Returns: %0 on success
+ */
 int connman_driver_register(struct connman_driver *driver)
 {
        DBG("driver %p name %s", driver, driver->name);
@@ -406,6 +414,12 @@ static gboolean remove_driver(GNode *node, gpointer data)
        return FALSE;
 }
 
+/**
+ * connman_driver_unregister:
+ * @driver: driver definition
+ *
+ * Remove a previously registered driver
+ */
 void connman_driver_unregister(struct connman_driver *driver)
 {
        DBG("driver %p name %s", driver, driver->name);