New API calls isoburn_ropt_set_truncate_mode() isoburn_ropt_get_truncate_mode()

This commit is contained in:
2015-09-17 12:05:40 +00:00
parent ea8f2ad517
commit 44d09c30c0
6 changed files with 70 additions and 2 deletions

View File

@ -242,7 +242,7 @@ void isoburn_version(int *major, int *minor, int *micro);
*/
#define isoburn_libisofs_req_major 1
#define isoburn_libisofs_req_minor 4
#define isoburn_libisofs_req_micro 0
#define isoburn_libisofs_req_micro 1
/** The minimum version of libburn to be used with this version of libisoburn
at compile time.
@ -1014,6 +1014,29 @@ int isoburn_ropt_get_displacement(struct isoburn_read_opts *o,
of uint32_t.
*/
/** Set the name truncation mode and the maximum name length for imported
file objects.
@since 1.4.2
@param o The option set to work on
@param mode 0= Do not truncate but throw error
ISO_RR_NAME_TOO_LONG if a file name
is longer than parameter length.
1= Truncate to length and overwrite the last
32 bytes of that length by the hex
representation of ithe MD5 of the whole
oversized name.
Potential incomplete UTF-8 characters will
get their leading bytes replaced by '_'.
This is the default.
@param length Maximum byte count of a file name. Permissible
values are 64 to 255. Default is 255.
*/
int isoburn_ropt_set_truncate_mode(struct isoburn_read_opts *o,
int mode, int length);
int isoburn_ropt_get_truncate_mode(struct isoburn_read_opts *o,
int *mode, int *length);
/** After calling function isoburn_read_image() there are informations
available in the option set.