Revise OO CD-Text CPP for different interface. Update copyright and untabify some files.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: cdtext.cpp,v 1.4 2008/03/24 15:30:57 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2009, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -23,7 +21,6 @@
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#define __CDIO_CONFIG_H__ 1
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDIO_H
|
||||
@@ -42,15 +39,16 @@
|
||||
static void
|
||||
print_cdtext_track_info(CdioDevice *device, track_t i_track,
|
||||
const char *psz_msg) {
|
||||
cdtext_t *cdtext = device->getCdtext(0);
|
||||
cdtext_t *cdtext = device->getCdtext();
|
||||
if (NULL != cdtext) {
|
||||
cdtext_field_t i;
|
||||
|
||||
printf("%s\n", psz_msg);
|
||||
|
||||
for (i= (cdtext_field_t) MIN_CDTEXT_FIELD; i < MAX_CDTEXT_FIELDS; i++) {
|
||||
if (cdtext->field[i]) {
|
||||
printf("\t%s: %s\n", cdtext_field2str(i), cdtext->field[i]);
|
||||
if (cdtext_get_const(i, i_track, cdtext)) {
|
||||
printf("\t%s: %s\n", cdtext_field2str(i),
|
||||
cdtext_get_const(i, i_track, cdtext));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011
|
||||
Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -65,7 +65,8 @@ print_disc_info(CdIo_t *p_cdio, track_t i_tracks, track_t i_first_track) {
|
||||
print_cdtext_track_info(cdtext, 0, "\nCD-Text for Disc:");
|
||||
for ( ; i_first_track < i_last_track; i_first_track++ ) {
|
||||
char psz_msg[50];
|
||||
snprintf(psz_msg, sizeof(psz_msg), "CD-Text for Track %d:", i_first_track);
|
||||
snprintf(psz_msg, sizeof(psz_msg), "CD-Text for Track %d:",
|
||||
i_first_track);
|
||||
print_cdtext_track_info(cdtext, i_first_track, psz_msg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: disc.hpp,v 1.2 2008/03/25 15:59:10 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
Reference in New Issue
Block a user