doc: Add macros and typedefs to the documentation
authorBill Spitzak <spitzak@gmail.com>
Sat, 24 Jan 2015 01:41:07 +0000 (17:41 -0800)
committerBryce Harrington <bryce@osg.samsung.com>
Tue, 27 Jan 2015 01:54:59 +0000 (17:54 -0800)
If somebody bothered to put a doxygen comment in for a macro or
typedef, make it appear in the pages. This produces documentation
for wl_container_of and wl_dispatcher_func_t from the _8h files.

Reviewed-by: "Jon A. Cruz" <jonc@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
doc/publican/doxygen-to-publican.xsl

index a151628..cbcb281 100644 (file)
 
 <!-- methods -->
 <xsl:template match="memberdef" >
-  <xsl:if test="@kind = 'function' and @static = 'no'">
+  <xsl:if test="@kind = 'function' and @static = 'no' or
+                @kind !='function' and normalize-space(briefdescription) != ''">
     <varlistentry id="{$which}-{@id}">
         <term>
           <xsl:value-of select="name"/>