summary refs log tree commit diff
path: root/src/libnm-glib-aux/nm-enum-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnm-glib-aux/nm-enum-utils.h')
-rw-r--r--src/libnm-glib-aux/nm-enum-utils.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libnm-glib-aux/nm-enum-utils.h b/src/libnm-glib-aux/nm-enum-utils.h
index 6478cadf..a90e13fe 100644
--- a/src/libnm-glib-aux/nm-enum-utils.h
+++ b/src/libnm-glib-aux/nm-enum-utils.h
@@ -15,6 +15,13 @@ typedef struct _NMUtilsEnumValueInfo {
     int         value;
 } NMUtilsEnumValueInfo;
 
+typedef struct _NMUtilsEnumValueInfoFull {
+    const char  *nick;
+    const char **aliases;
+    const char  *value_str;
+    int          value;
+} NMUtilsEnumValueInfoFull;
+
 char    *_nm_utils_enum_to_str_full(GType                       type,
                                     int                         value,
                                     const char                 *sep,
@@ -27,6 +34,11 @@ gboolean _nm_utils_enum_from_str_full(GType                       type,
 
 const char **_nm_utils_enum_get_values(GType type, int from, int to);
 
+GArray *_nm_utils_enum_get_values_full(GType                       type,
+                                       int                         from,
+                                       int                         to,
+                                       const NMUtilsEnumValueInfo *value_infos);
+
 /*****************************************************************************/
 
 #endif /* __NM_ENUM_UTILS_H__ */