Feature request with patch: const accessor macros for G_STRUCT_MEMBER
Submitted by Roland Clobus
Link to original bug (#699837)
Description
Created attachment 243494 G_STRUCT_MEMBER_CONST
The attached patch adds the const version for the macro G_STRUCT_MEMBER. This will allow me to pass the structure as a const to a function and retrieve the data from it.
Example usage:
const gchar *str = G_STRUCT_MEMBER_CONST(gchar *, structure, offset);
Patch 243494, "G_STRUCT_MEMBER_CONST":
add_const_accessors.patch
Version: 2.37.x