New API call burn_session_get_start_tno()

This commit is contained in:
Thomas Schmitt 2012-01-08 14:10:24 +00:00
parent 0446226aa6
commit a9b400833c
4 changed files with 25 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.01.08.132304" #define Cdrskin_timestamP "2012.01.08.140810"

View File

@ -1947,6 +1947,17 @@ int burn_session_remove_track(struct burn_session *s, struct burn_track *t);
int burn_session_set_start_tno(struct burn_session *session, int tno, int burn_session_set_start_tno(struct burn_session *session, int tno,
int flag); int flag);
/* ts B20108 */
/** Inquire the CD track start number, as set by default ot by
burn_session_set_start_tno().
@param session The session to be inquired
@return > 0 is the currently set CD track start number
<= 0 indicates failure
@since 1.2.0
*/
int burn_session_get_start_tno(struct burn_session *session, int flag);
/* ts B11206 */ /* ts B11206 */
/** Set the Character Codes, the Copyright bytes, and the Language Codes /** Set the Character Codes, the Copyright bytes, and the Language Codes
@ -2165,8 +2176,11 @@ int burn_session_get_cdtext(struct burn_session *s, int block,
/** Read a Sony CD-TEXT Input Sheet Version 0.7T file and attach its text /** Read a Sony CD-TEXT Input Sheet Version 0.7T file and attach its text
attributes to the given session and its tracks for the given CD-TEXT attributes to the given session and its tracks for the given CD-TEXT
block number. This overrides previous settings made by block number. This overrides previous settings made by
burn_session_set_cdtext() and burn_track_set_cdtext(). It can later be burn_session_set_cdtext(), burn_track_set_cdtext(), burn_track_set_isrc(),
overridden by said function calls. burn_session_set_start_tno(). It can later be overridden by said function
calls.
The media catalog number from purpose specifier "UPC / EAN" gets into
effect only if burn_write_opts_set_has_mediacatalog() is set to 0.
The format of a v07t sheet file is documented in doc/cdtext.txt. The format of a v07t sheet file is documented in doc/cdtext.txt.
@param s Session where to attach CD-TEXT attributes @param s Session where to attach CD-TEXT attributes
@param path Local filesystem address of the sheet file which @param path Local filesystem address of the sheet file which

View File

@ -123,6 +123,7 @@ burn_session_get_cdtext_par;
burn_session_get_hidefirst; burn_session_get_hidefirst;
burn_session_get_leadout_entry; burn_session_get_leadout_entry;
burn_session_get_sectors; burn_session_get_sectors;
burn_session_get_start_tno;
burn_session_get_tracks; burn_session_get_tracks;
burn_session_hide_first_track; burn_session_hide_first_track;
burn_session_input_sheet_v07t; burn_session_input_sheet_v07t;

View File

@ -785,6 +785,13 @@ int burn_session_set_start_tno(struct burn_session *session, int tno, int flag)
} }
/* ts B20108 API */
int burn_session_get_start_tno(struct burn_session *session, int flag)
{
return (int) session->firsttrack;
}
struct burn_cdtext *burn_cdtext_create(void) struct burn_cdtext *burn_cdtext_create(void)
{ {
struct burn_cdtext *t; struct burn_cdtext *t;