Obtain the type information of the union discriminator.
a UnionInfo
the TypeInfo, free it with g_base_info_unref when done.
g_base_info_unref