Function

GObjectflags_get_value_by_name

Declaration [src]

GFlagsValue*
g_flags_get_value_by_name (
  GFlagsClass* flags_class,
  const gchar* name
)

Description [src]

Looks up a GFlagsValue by name.

Parameters

flags_class GFlagsClass
 

A GFlagsClass.

 The data is owned by the caller of the function.
name const gchar*
 

The name to look up.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: GFlagsValue
 

The GFlagsValue with name name, or NULL if there is no flag with that name.

 The data is owned by the called function.
 The return value can be NULL.