summaryrefslogtreecommitdiffstats
path: root/src/PYLibPinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-09-08 18:02:51 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-22 12:23:11 +0800
commit979bbe6338cf796d97953b0a95d13fc00f0bf650 (patch)
tree164ae84e76ba93be068b568c8a4495c3d4da7d62 /src/PYLibPinyin.h
parent4e279112646c10657191b8529d0b96d15a9d14dd (diff)
downloadibus-libpinyin-979bbe6338cf796d97953b0a95d13fc00f0bf650.tar.gz
ibus-libpinyin-979bbe6338cf796d97953b0a95d13fc00f0bf650.tar.xz
ibus-libpinyin-979bbe6338cf796d97953b0a95d13fc00f0bf650.zip
begin to write libpinyin backend
Diffstat (limited to 'src/PYLibPinyin.h')
-rw-r--r--src/PYLibPinyin.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PYLibPinyin.h b/src/PYLibPinyin.h
index d3bc90c..c07b435 100644
--- a/src/PYLibPinyin.h
+++ b/src/PYLibPinyin.h
@@ -22,11 +22,17 @@
#ifndef __PY_LIB_PINYIN_H_
#define __PY_LIB_PINYIN_H_
-typedef struct _pinyin_context_t pinyin_context_t;
+#include <memory>
+#include <pinyin.h>
namespace PY {
+
class LibPinyinBackEnd{
+
public:
+ LibPinyinBackEnd();
+ ~LibPinyinBackEnd();
+
/* use static initializer in C++. */
static LibPinyinBackEnd & instance (void) { return *m_instance; }