{GUM_USERTYPE_SECURITY, "security"}
};
+GumUserTypeString user_type_prefix[GUM_USERTYPE_COUNT] = {
+ {GUM_USERTYPE_NONE, ""},
+ {GUM_USERTYPE_SYSTEM, ""},
+ {GUM_USERTYPE_ADMIN, ""},
+ {GUM_USERTYPE_GUEST, ""},
+ {GUM_USERTYPE_NORMAL, ""},
+ {GUM_USERTYPE_SECURITY, "cont_"}
+};
+
gint16
_get_user_type_strings_index (
GumUserType type)
}
/**
+ * gum_user_type_to_prefix:
+ * @type: the user type enum to convert
+ *
+ * Converts the user type enum to prefix string
+ *
+ * Returns: (transfer none): usertype if conversion succeeds, NULL otherwise.
+ */
+const gchar *
+gum_user_type_to_prefix (
+ GumUserType type)
+{
+ gint16 ind = _get_user_type_strings_index (type);
+ if (ind <= 0 || ind >= GUM_USERTYPE_COUNT)
+ return "";
+ return user_type_prefix[ind].str;
+}
+
+/**
* gum_user_type_from_string:
* @type: (transfer none): the user type string to convert
*