[Fontconfig] [PATCH] Rework Reporting Of Config Parse Errors To Use Callback

Akira TAGOH akira at tagoh.org
Tue Jul 9 05:44:13 UTC 2019


Please open a merge request on gitlab. I can start the review then.

On Tue, Jul 9, 2019 at 8:55 AM Lawrence D'Oliveiro
<ldo at geek-central.gen.nz> wrote:
>
> This patch reworks the FcConfigMessage routine in fcxml.c to pass all
> messages through a callback action. The idea is that it becomes easy to
> add alternate versions of the FcConfigParseAndLoadxxx routines that pass
> a caller-specified callback for capturing the messages, rather than
> sending them direct to stderr.
>
> Initially I had the callback details stored as fields in the
> _FcConfigParse structure. Then I discovered that messages could be
> reported in situations where such a structure did not exist. So I put
> them in a separate _MessageCallback structure. So this structure has to
> be passed as a separate arg to every FcConfigMessage call.
>
> Let me know what you think.
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig



-- 
Akira TAGOH


More information about the Fontconfig mailing list