libplist  2.8.0
API Documentation - Return to Homepage

◆ plist_write_options_t

libplist write options

Enumerator
PLIST_OPT_NONE 

Default value to use when none of the options is needed.

PLIST_OPT_COMPACT 

Use a compact representation (non-prettified).

Only valid for PLIST_FORMAT_JSON and PLIST_FORMAT_OSTEP.

PLIST_OPT_PARTIAL_DATA 

Print 24 bytes maximum of PLIST_DATA values.

If the data is longer than 24 bytes, the first 16 and last 8 bytes will be written. Only valid for PLIST_FORMAT_PRINT.

PLIST_OPT_NO_NEWLINE 

Do not print a final newline character.

Only valid for PLIST_FORMAT_PRINT, PLIST_FORMAT_LIMD, and PLIST_FORMAT_PLUTIL.

PLIST_OPT_INDENT 

Indent each line of output.

Currently only PLIST_FORMAT_PRINT and PLIST_FORMAT_LIMD are supported. Use PLIST_OPT_INDENT_BY() macro to specify the level of indentation.

PLIST_OPT_COERCE 

Coerce plist types that have no native JSON representation into JSON-compatible types.

PLIST_DATE is converted to an ISO 8601 date string, PLIST_DATA is converted to a Base64-encoded string, and PLIST_UID is converted to an integer. Only valid for PLIST_FORMAT_JSON. Without this option, these types cause PLIST_ERR_FORMAT.