[wiki.onering-desktop] push by - Edited wiki page PluginBasedArchitecture through web user interface. on 2011-05-19 06:14 GMT

0 views
Skip to first unread message

onering...@googlecode.com

unread,
May 19, 2011, 2:15:06 AM5/19/11
to oneri...@googlegroups.com
Revision: e483336569b3
Author: hongqn
Date: Wed May 18 23:14:31 2011
Log: Edited wiki page PluginBasedArchitecture through web user
interface.
http://code.google.com/p/onering-desktop/source/detail?repo=wiki&r=e483336569b3

Modified:
/PluginBasedArchitecture.wiki

=======================================
--- /PluginBasedArchitecture.wiki Wed May 18 22:43:13 2011
+++ /PluginBasedArchitecture.wiki Wed May 18 23:14:31 2011
@@ -15,6 +15,9 @@
* `onering_publish(channel, msg)` -- 向某个通道发布信息
* `onering_load_plugins(const char* dir)` -- 加载某个目录下的所有
OneRingPlugin
* `const char* onering_version()` -- 输出 OneRingCore 的版本
号,如 "OneRingQtCore 1.0.0"
+ * `void* onering_call_app(const char* appname, const char* method,
const char* path, const char*body,
+ char** response, int* response_len)
-- 调用某个app
+ * `void onering_free_response(const char* appname, void* response)` --
释放app调用的response资源
* 实现一个OneRingApp: onering,并自动注册。该app提供
onering://onering/onering.js,其中包含以下定义
* `ONERING.Base` -- OneRingApp 中定义的native对象的基类,提供如下方法:
* `bind(event, callback)` -- 绑定某个事件,当事件发生时,回调callback
@@ -35,6 +38,7 @@
* `ONERING.unsubscribe([channel, [callback]])`
* native调用
* `ONERING.call_app(appname, command, param)`
+ * `ONERING.call_app_async(appname, command, param, callback)`
* 工具函数
* `ONERING.log(obj)`
* `ONERING.version()`
Reply all
Reply to author
Forward
0 new messages