From 652550183f1cf544b3dcbd4fd85e73ebbee8eb89 Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Fri, 5 Apr 2019 12:48:30 +0800 Subject: [PATCH] add doc. renamed executable to be zero-pinyin-service --- com.emacsos.zero.ZeroPinyinService.service | 2 +- meson.build | 2 +- operational | 46 ++++++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 operational diff --git a/com.emacsos.zero.ZeroPinyinService.service b/com.emacsos.zero.ZeroPinyinService.service index 258d90f..1ebc6db 100644 --- a/com.emacsos.zero.ZeroPinyinService.service +++ b/com.emacsos.zero.ZeroPinyinService.service @@ -1,3 +1,3 @@ [D-BUS Service] Name=com.emacsos.zero.ZeroPinyinService -Exec=/home/sylecn/projects/libpyzy/src/zero-pinyin-service/build/main +Exec=/home/sylecn/projects/libpyzy/src/zero-pinyin-service/build/zero-pinyin-service diff --git a/meson.build b/meson.build index 74234a1..c882410 100644 --- a/meson.build +++ b/meson.build @@ -42,7 +42,7 @@ src = [ 'parse-pinyin.cpp', 'zero-pinyin-service.c', 'main.c'] -executable('main', src, dependencies: shared_dep) +executable('zero-pinyin-service', src, dependencies: shared_dep) test('parse-pinyin', executable('parse-pinyin', diff --git a/operational b/operational new file mode 100644 index 0000000..8ca17d2 --- /dev/null +++ b/operational @@ -0,0 +1,46 @@ +* COMMENT -*- mode: org -*- +#+Date: 2019-04-05 +Time-stamp: <2019-04-05> +#+STARTUP: content +* notes :entry: +** 2019-04-05 zero-pinyin-service file structure :doc: +- zero-pinyin-service + - main.c + a console application based on glib and gio. + provides dbus service. see the zero-pinyin-service spec at + ~/c/gtk-im-module/operational :id001: + - zero-pinyin-service.h + zero-pinyin-service.c + zero-pinyin-service-test.c + + contains the zero-pinyin-service dbus method C based implementation. + - parse-pinyin.h + parse-pinyin.cpp + parse-pinyin-test.cpp + + contains utility functions based on code from libpyzyz. This should be + replaced eventually. I don't want to depend on libpyzy source code. + +- utilities + - test-sql.sh + a shell script to experiment SQL commands + +- data files + - meson.build + + build script. used to create executable. + + - com.emacsos.zero.ZeroPinyinService.service + + dbus service definition file. + + Should be copied to dbus service file dir /usr/share/dbus-1/services/ + + When dbus client try to talk to service, dbus session bus will start the + service app automatically. + +* later :entry: +* current :entry: +** +* done :entry: +* wontfix :entry: -- GitLab