aboutsummaryrefslogtreecommitdiff
path: root/src/stardict.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-07-17 22:09:53 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-07-18 00:16:50 +0200
commit270539c72e4a557db5922987a651b472581029b3 (patch)
tree5a2c50f2457f948af5db6a437a28c873cc011799 /src/stardict.h
parent15f62b7054c12bff2899ac6bd73147b6bfc818fe (diff)
downloadtdv-270539c72e4a557db5922987a651b472581029b3.tar.gz
tdv-270539c72e4a557db5922987a651b472581029b3.tar.xz
tdv-270539c72e4a557db5922987a651b472581029b3.zip
Move private data into StardictDictPrivate
Diffstat (limited to 'src/stardict.h')
-rw-r--r--src/stardict.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/stardict.h b/src/stardict.h
index aef27fd..dd70eb3 100644
--- a/src/stardict.h
+++ b/src/stardict.h
@@ -28,6 +28,7 @@
/** An object intended for interacting with a dictionary. */
typedef struct stardict_dict StardictDict;
typedef struct stardict_dict_class StardictDictClass;
+typedef struct stardict_dict_private StardictDictPrivate;
/** Overall information about a particular dictionary. */
typedef struct stardict_info StardictInfo;
@@ -120,18 +121,13 @@ GList *stardict_list_dictionaries (const gchar *path);
struct stardict_dict
{
- GObject parent_instance;
- StardictInfo * info; //!< General information about the dict
- GArray * index; //!< Word index
- GArray * synonyms; //!< Synonyms
- gpointer dict; //!< Dictionary data
- gsize dict_length; //!< Length of the dict data in bytes
- GMappedFile * mapped_dict; //!< Memory map handle
+ GObject parent_instance;
+ StardictDictPrivate * priv;
};
struct stardict_dict_class
{
- GObjectClass parent_class;
+ GObjectClass parent_class;
};
GType stardict_dict_get_type (void);