New API call isoburn_toc_disc_get_incmpl_sess()

This commit is contained in:
2013-01-13 20:08:31 +00:00
parent cce0c592c8
commit 3b241f7234
5 changed files with 57 additions and 11 deletions

View File

@ -596,7 +596,11 @@ struct isoburn_toc_disc *isoburn_toc_drive_get_disc(struct burn_drive *d);
int isoburn_toc_disc_get_sectors(struct isoburn_toc_disc *disc);
/** Get the array of session handles from the table of content.
/** Get the array of session handles and the number of complete sessions
from the table of content.
The result array contains *num + isoburn_toc_disc_get_incmpl_sess()
elements. All above *num are incomplete sessions.
Typically there is at most one incomplete session with no track.
Wrapper for: burn_disc_get_sessions()
@since 0.1.6
@param disc The master handle of the medium
@ -607,6 +611,16 @@ struct isoburn_toc_session **isoburn_toc_disc_get_sessions(
struct isoburn_toc_disc *disc, int *num);
/** Obtain the number of incomplete sessions which are recorded in the
result array of isoburn_toc_disc_get_sessions() after the complete
sessions. See above.
@since 1.2.8
@param disc The master handle of the medium
@return the number of incomplete sessions
*/
int isoburn_toc_disc_get_incmpl_sess(struct isoburn_toc_disc *disc);
/** Tell the number of 2048 byte blocks covered by a particular session.
Wrapper for: burn_session_get_sectors()
@since 0.1.6