New API call isoburn_conv_name_chars()

This commit is contained in:
2013-12-28 19:48:44 +00:00
parent da50c59d27
commit 61244da0bf
4 changed files with 190 additions and 99 deletions

View File

@@ -1893,6 +1893,46 @@ int isoburn_igopt_set_write_type(struct isoburn_imgen_opts *opts, int do_tao);
int isoburn_igopt_get_write_type(struct isoburn_imgen_opts *opts, int *do_tao);
/** Frontend of libisofs call iso_conv_name_chars() controlled by
struct isoburn_imgen_opts rather than IsoWriteOpts.
See libisofs.h for a more detailed description.
@since 1.3.6
@param opts
Defines options like output charset, UCS-2 versus UTF-16 for Joliet,
and naming restrictions.
@param name
The input text which shall be converted.
@param name_len
The number of bytes in input text.
@param result
Will return the conversion result in case of success. Terminated by
a trailing zero byte.
Use free() to dispose it when no longer needed.
@param result_len
Will return the number of bytes in result (excluding trailing zero)
@param flag
Bitfield for control purposes.
bit0-bit7= Name space
0= generic (to_charset is valid,
no reserved characters, no length limits)
1= Rock Ridge (to_charset is valid)
2= Joliet (to_charset gets overridden by UCS-2 or UTF-16)
3= ECMA-119 (to_charset gets overridden by the
dull ISO 9660 subset of ASCII)
4= HFS+ (to_charset gets overridden by UTF-16BE)
bit8= Treat input text as directory name
(matters for Joliet and ECMA-119)
bit9= Do not issue error messages
bit15= Reverse operation (best to be done only with results of
previous conversions)
@return
1 means success, <=0 means error
*/
int isoburn_conv_name_chars(struct isoburn_imgen_opts *opts,
char *name, size_t name_len,
char **result, size_t *result_len, int flag);
/* ----------------------------------------------------------------------- */
/* End of Options for image generation */
/* ----------------------------------------------------------------------- */