doc: add examples to the Doxygen documentation
authorAntonio Ospite <ospite@studenti.unina.it>
Fri, 23 Mar 2012 21:01:45 +0000 (22:01 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Fri, 23 Mar 2012 21:01:45 +0000 (22:01 +0100)
doc/Doxyfile.in
examples/am7xxx-play.c
examples/picoproj.c

index a1554c4..4e6a877 100644 (file)
@@ -96,7 +96,8 @@ WARN_LOGFILE           =
 # configuration options related to the input files
 #---------------------------------------------------------------------------
 INPUT                  = @CMAKE_CURRENT_SOURCE_DIR@/ \
-                         @CMAKE_SOURCE_DIR@/src/
+                         @CMAKE_SOURCE_DIR@/src/ \
+                         @CMAKE_SOURCE_DIR@/examples/
 INPUT_ENCODING         = UTF-8
 FILE_PATTERNS          = *.dox \
                          *.h \
@@ -106,8 +107,8 @@ EXCLUDE                =
 EXCLUDE_SYMLINKS       = NO
 EXCLUDE_PATTERNS       =
 EXCLUDE_SYMBOLS        =
-EXAMPLE_PATH           =
-EXAMPLE_PATTERNS       =
+EXAMPLE_PATH           = @CMAKE_SOURCE_DIR@/examples/
+EXAMPLE_PATTERNS       = *.c
 EXAMPLE_RECURSIVE      = NO
 IMAGE_PATH             =
 INPUT_FILTER           =
index b28ecec..54f92e9 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/**
+ * @example examples/am7xxx-play.c
+ * am7xxx-play uses libavdevice, libavformat, libavcodec and libswscale to
+ * decode the input, encode it to jpeg and display it with libam7xxx.
+ */
+
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
index c3b199c..2970585 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/**
+ * @example examples/picoproj.c
+ * A minimal example to show how to use libam7xxx to show a static image.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>