From 270539c72e4a557db5922987a651b472581029b3 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Wed, 17 Jul 2013 22:09:53 +0200
Subject: Move private data into StardictDictPrivate
---
src/stardict.h | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
(limited to 'src/stardict.h')
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);
--
cgit v1.2.3-70-g09d2