]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_strings.h: intern a "userdata" key string
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 17 Oct 2023 14:22:35 +0000 (10:22 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Jun 2025 01:13:06 +0000 (21:13 -0400)
commit464180cc828f82561012de3610743dc13c7bba54
tree085c7a1abf29c0fd938e938a1b99053a38ac94f9
parent66e76e4805b3f46112e9a1e6ffa677d1a00c21b4
src/svgtiny_strings.h: intern a "userdata" key string

To implement libcss's select handler API, we need to implement two
functions that get/set "userdata" on a node. The corresponding libdom
API allows you to set arbitrary data in the form of key->value pairs;
so to identify THIS particular data, we need to use the same string
each time. For that reason we intern "_libcss_user_data" and call it
the "userdata_key".
src/svgtiny_strings.h