ref: 418cb3a5671404d2d91bf221887df2be2ae2654f
parent: e411db788cfc0d0ed54b3c9b9deb15edba7d237a
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Feb 13 17:41:40 EST 2023
Make encode_ui() and decode_ui() optional in back-ends The majority of back-ends define encode_ui() to return NULL and decode_ui() to do nothing. This commit allows them to instead specify the relevant function pointers as NULL, in which case the mid-end won't try to call them. I'm planning to add a parameter to decode_ui(), and if I'm going to have to touch every back-end's version of decode_ui(), I may as well ensure that most of them never need to be touched again. And obviously encode_ui() should go the same way for symmetry.