Changeset 8217

Show
Ignore:
Timestamp:
2006-07-19 14:10:15 (2 years ago)
Author:
luks
Message:

Doxygen documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libdiscid/trunk/configure.ac

    r8089 r8217  
    5959AC_OUTPUT([ 
    6060  Makefile src/Makefile include/Makefile include/discid/Makefile 
    61   examples/Makefile test/Makefile libdiscid.pc 
     61  examples/Makefile test/Makefile libdiscid.pc Doxyfile 
    6262]) 
  • libdiscid/trunk/include/discid/discid.h

    r8088 r8217  
    3030#endif 
    3131 
     32/*! 
     33 * \mainpage libdiscid 
     34 * \section intro Introduction 
     35 * 
     36 * libdiscid is a C library for calculating DiscIDs for Audio CDs. It is a C 
     37 * port of the DiscID-related code from libmusicbrainz2 (which is written in 
     38 * C++). The idea is to have an easy to use library without any dependencies 
     39 * that can be used from scripting languages. 
     40  
     41 * \section examples Examples 
     42 * 
     43 * This is an example of the most basic usage: 
     44 * 
     45 * \code 
     46 * 
     47 * DiscId *disc = discid_new(); 
     48 * 
     49 * /* read the disc in the default disc drive */ 
     50 * if ( discid_read(disc, NULL) == 0 ) { 
     51 *     fprintf(stderr, "Error: %s\n", discid_get_error_msg(disc)); 
     52 *     return 1; 
     53 * } 
     54 *  
     55 * printf("DiscID        : %s\n", discid_get_id(disc)); 
     56 * printf("Submit via    : %s\n", discid_get_submission_url(disc)); 
     57 * 
     58 * discid_free(disc);  
     59 * 
     60 * \endcode 
     61 * 
     62 * \section Building 
     63 * 
     64 * libdiscid provides a pkg-config script that returns the necessary compiler and linker flags, as well as the 
     65 * version number.  To build a small sample program one would use: 
     66 * 
     67 * <tt>gcc libdiscid-test.c `pkg-config --cflags --libs` -o libdiscid-test</tt> 
     68 * 
     69 * \section Contact 
     70 * 
     71 *  - <a href="http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel">MusicBrainz Development Mailing List</a> 
     72 *  - <a href="http://bugs.musicbrainz.org/query?component=libdiscid">MusicBrainz Bug Tracker</a> 
     73 * 
     74 */  
     75 
    3276 
    3377/** 
     
    131175 * Return the name of the default disc drive for this operating system. 
    132176 * 
    133  * @param a string containing an operating system dependent device identifier 
     177 * @return a string containing an operating system dependent device identifier 
    134178 */ 
    135179char *discid_get_default_device(void); 
  • libdiscid/trunk/Makefile.am

    r8089 r8217  
    2727pc_DATA = libdiscid.pc 
    2828 
    29 EXTRA_DIST = libdiscid.pc.in 
     29EXTRA_DIST = libdiscid.pc.in Doxyfile.in