enum_to_str
Description:
Converts an enum value to its string representation.
If the enum is a g_type_flags the function returns a comma-separated list of matching values. If the value has no corresponding string representation, it is converted to a number. For enums it is converted to a decimal number, for flags to an ( unsigned) hex number.
Parameters:
type |
the gtype of the enum |
value |
the value to be translated |
Returns:
a newly allocated string or null |
Namespace: NM.Utils
Package: libnm