summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 3a9a16e..6002315 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -27,24 +27,10 @@
#include "novel_types.h"
#include "pinyin_custom2.h"
-namespace pinyin{
+G_BEGIN_DECLS
+
typedef struct _ChewingKey ChewingKey;
typedef struct _ChewingKeyRest ChewingKeyRest;
-};
-
-using pinyin::pinyin_option_t;
-using pinyin::DoublePinyinScheme;
-using pinyin::ChewingScheme;
-
-using pinyin::phrase_token_t;
-using pinyin::null_token;
-
-using pinyin::ChewingKey;
-using pinyin::ChewingKeyRest;
-using pinyin::ChewingKeyVector;
-
-
-extern "C" {
typedef struct _pinyin_context_t pinyin_context_t;
typedef struct _pinyin_instance_t pinyin_instance_t;
@@ -614,6 +600,6 @@ typedef ChewingKeyRest PinyinKeyPos;
#define LIBPINYIN_FORMAT_VERSION "0.8.92"
-};
+G_END_DECLS
#endif