summaryrefslogtreecommitdiff
path: root/src/stardict-private.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-09 00:49:45 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-10 02:06:27 +0200
commitbcf933fb9e8cc327a0c095b3456360a3ebf9fe6e (patch)
tree06e42cd86f95758cb3358d2ec67b4a9f8f44f324 /src/stardict-private.h
parent28321b72e9c679bf5a8044c19f48f7ced5bb6249 (diff)
downloadtdv-bcf933fb9e8cc327a0c095b3456360a3ebf9fe6e.tar.gz
tdv-bcf933fb9e8cc327a0c095b3456360a3ebf9fe6e.tar.xz
tdv-bcf933fb9e8cc327a0c095b3456360a3ebf9fe6e.zip
Move dictionary generation to its own module
Diffstat (limited to 'src/stardict-private.h')
-rw-r--r--src/stardict-private.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/stardict-private.h b/src/stardict-private.h
index dc7c3b1..4a97eea 100644
--- a/src/stardict-private.h
+++ b/src/stardict-private.h
@@ -62,4 +62,20 @@ struct stardict_synonym_entry
guint32 original_word; //!< The original word's index
};
+struct stardict_ifo_key
+{
+ const gchar *name; //!< Name of the key
+ enum {
+ IFO_STRING, //!< A @code gchar * @endcode value
+ IFO_NUMBER //!< A @code gulong @endcode value
+ } type; //!< Type of the value
+ size_t offset; //!< Offset within StardictInfo
+};
+
+/** Lists all the entries in StardictInfo. */
+extern const struct stardict_ifo_key _stardict_ifo_keys[];
+
+/** Denotes the length of _stardict_ifo_keys. */
+extern gsize _stardict_ifo_keys_length;
+
#endif /* ! STARDICTPRIVATE_H */