Closed fduncanh closed 6 months ago
is there any substitute method for plist_get_data_val compatible with both plist 2.5.0 and earlier versions?
EDIT: I switched from plist_get_data_ptr to plist_get_data_val after the API for that was changed some time ago in v 2.2.0, to maintain backward compatibility, so I guess not.
@nikias in case you are willing to restore compatibility with the older API, I have provided a pull request #261 to do this. Its tested.
I've now worked around this in the code I maintain with cmake to identify the libplist version, and then #define appropriate casts when the version >= 2.5, but it would still be a good idea to you to provide the old API functions as wrappers around renamed uint8_t functions as in PR #261. Sorry if I was grumpy.
Sorry guys I reverted the changed and released a 2.6.0
THANK YOU!!!
Thanks for your great work, but....
Changing the API is disruptive, and should not be done on a whim to make things "cleaner"
Better to introduce a new function, and replace the previous one with a wrapper to the new version. We have to support all versions of libplist later than some quite old one (v.2.0)
I suggest:
(+ similar changes for plist_set_data_val, plist_get_data_ptr, plist_new_data )
e.g.:
https://github.com/FDH2/UxPlay/issues/294