Difference between revisions of "DBus"
Jump to navigation
Jump to search
Weng Xuetian (talk | contribs) m (→Intro) |
Weng Xuetian (talk | contribs) m (Text replacement - "<translate1>" to "<translate>") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <languages /> | + | <languages/> |
<translate> | <translate> |
Latest revision as of 22:54, 2 February 2016
Version | 4.2.1 |
---|---|
Written In | C |
License | GPLv2 |
Type | Module |
Intro
DBus is a module that integrate dbus into Fcitx main loop. The only exposed function is get connection, which you should use this shared connection for Fcitx.
Fcitx's service name is "org.fcitx.Fcitx-<display number>", the display number should be fetched by fcitx_utils_get_display_number, even there is no X server running, for example under TTY.
For Developer
If you need something related to DBus, please use Inter Module Function Call to talk with this module.
Here is the exposed function definition of X11, you can also find it in include/fcitx/module/dbus/dbusstuff.h
#define FCITX_DBUS_NAME "fcitx-dbus" #define FCITX_DBUS_GETCONNECTION 0 #define FCITX_DBUS_GETCONNECTION_RETURNTYPE DBusConnection*