+ /**
+ * Returns a string represented by an ident.
+ */
+ const char *(*get_id_str)(void *handle, ident *id);
+
+ /**
+ * Returns the length of the string represented by an ident.
+ * This function may be NULL, get_id_str() is then used
+ * to emulate it's behavior.
+ *
+ * @param id - the ident
+ */
+ int (*get_id_strlen)(void *handle, ident *id);
+
+ /**
+ * Finish the ident module and frees all idents, may be NULL.
+ */
+ void (*finish_ident)(void *handle);
+
+#ifdef FIRM_ENABLE_WCHAR
+ /**
+ * Store a wide character string and create an ident.
+ * This function may be NULL, new_id_from_wchars()
+ * is then used to emulate it's behavior.
+ *
+ * @param wstr - the string which shall be stored
+ */
+ ident *(*new_id_from_wcs)(void *handle, const wchar_t *wstr);
+
+ /**
+ * Store a wide character string and create an ident.
+ * This function may be NULL, new_id_from_chars() is then used appropriate.
+ * Beware: the string might not be stored at a right alignment!
+ *
+ * @param wstr - the wide character string which shall be stored
+ * @param len - the length of the string
+ */
+ ident *(*new_id_from_wchars)(void *handle, const wchar_t *wstr, int len);
+
+ /**
+ * Returns a wide character string represented by an ident.
+ * This function may be NULL, get_id_str() is then used.
+ * This assume that the strings are stored at an address aligned
+ * for wchar_t, so beware!
+ */
+ const wchar_t *(*get_id_wcs)(void *handle, ident *id);
+
+ /**
+ * Returns the length of the string represented by an ident.
+ * This function may be NULL, get_id_wcs() is then used
+ * to emulate it's behavior.
+ *
+ * @param id - the ident
+ */
+ int (*get_id_wcslen)(void *handle, ident *id);
+#endif
+} ident_if_t;
+
+/**
+ * Store a string and create an ident.