libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
528 stars 304 forks source link

add PLIST_OPT_NONE #225

Closed tihmstar closed 1 year ago

tihmstar commented 1 year ago

Add enum val for when no extra functionality is needed. When trying to write plist to file using the function:

plist_write_to_file(p_someplist, somefilename, PLIST_FORMAT_XML, 0)

The C++ compiler will complain that 0 (int) is not a valid plist_write_options_t. Instead it should be written as something like this:

plist_write_to_file(p_someplist, somefilename, PLIST_FORMAT_XML, PLIST_OPT_NONE)
nikias commented 1 year ago

who actually uses a C++ compiler...

nikias commented 1 year ago

61f01b1b06ff906cce4c4c3b2aa031f2efaf1201