Libcddb is a C library to access data on a CDDB server (freedb.org).