When using the gobject introspection library, how does one extract the proper value of a constant from a typelib?
Now I can extract the GIConstant info out of a type lib, and get the GIArgument obtaining the value, but how can I determine what union member to use WITHOUT prior knowledge of the constant being introspected?