libdiscid

0.1.0

Introduction

libdiscid is a C library for calculating DiscIDs for Audio CDs. It is a C port of the DiscID-related code from libmusicbrainz2 (which is written in C++). The idea is to have an easy to use library without any dependencies that can be used from scripting languages.

Examples

This is an example of the most basic usage:

 DiscId *disc = discid_new();

 if ( discid_read(disc, "/dev/cdrom") == 0 ) {
     fprintf(stderr, "Error: %s\n", discid_get_error_msg(disc));
     return 1;
 }
 
 printf("DiscID        : %s\n", discid_get_id(disc));
 printf("Submit via    : %s\n", discid_get_submission_url(disc));

 discid_free(disc); 

Building

libdiscid provides a pkg-config script that returns the necessary compiler and linker flags, as well as the version number. To build a small sample program one would use:

gcc libdiscid-test.c `pkg-config --cflags --libs` -o libdiscid-test

Contact


Generated on Sat Jul 22 18:31:34 2006 for libdiscid by  doxygen 1.4.6-NO