42
42
<div class="refsynopsisdiv">
43
43
<a name="ibus-ibusshare.synopsis"></a><h2>Synopsis</h2>
44
<pre class="synopsis">#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-CONFIG:CAPS" title="IBUS_INTERFACE_CONFIG">IBUS_INTERFACE_CONFIG</a>
45
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-ENGINE:CAPS" title="IBUS_INTERFACE_ENGINE">IBUS_INTERFACE_ENGINE</a>
46
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-FACTORY:CAPS" title="IBUS_INTERFACE_FACTORY">IBUS_INTERFACE_FACTORY</a>
44
<pre class="synopsis">#define <a class="link" href="ibus-ibusshare.html#IBUS-DEPRECATED:CAPS" title="IBUS_DEPRECATED">IBUS_DEPRECATED</a>
45
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-IBUS:CAPS" title="IBUS_SERVICE_IBUS">IBUS_SERVICE_IBUS</a>
46
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-PANEL:CAPS" title="IBUS_SERVICE_PANEL">IBUS_SERVICE_PANEL</a>
47
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-CONFIG:CAPS" title="IBUS_SERVICE_CONFIG">IBUS_SERVICE_CONFIG</a>
48
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-NOTIFICATIONS:CAPS" title="IBUS_SERVICE_NOTIFICATIONS">IBUS_SERVICE_NOTIFICATIONS</a>
49
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-IBUS:CAPS" title="IBUS_PATH_IBUS">IBUS_PATH_IBUS</a>
50
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-FACTORY:CAPS" title="IBUS_PATH_FACTORY">IBUS_PATH_FACTORY</a>
51
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-PANEL:CAPS" title="IBUS_PATH_PANEL">IBUS_PATH_PANEL</a>
52
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-CONFIG:CAPS" title="IBUS_PATH_CONFIG">IBUS_PATH_CONFIG</a>
53
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-NOTIFICATIONS:CAPS" title="IBUS_PATH_NOTIFICATIONS">IBUS_PATH_NOTIFICATIONS</a>
54
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-INPUT-CONTEXT:CAPS" title="IBUS_PATH_INPUT_CONTEXT">IBUS_PATH_INPUT_CONTEXT</a>
47
55
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-IBUS:CAPS" title="IBUS_INTERFACE_IBUS">IBUS_INTERFACE_IBUS</a>
48
56
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-INPUT-CONTEXT:CAPS" title="IBUS_INTERFACE_INPUT_CONTEXT">IBUS_INTERFACE_INPUT_CONTEXT</a>
57
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-FACTORY:CAPS" title="IBUS_INTERFACE_FACTORY">IBUS_INTERFACE_FACTORY</a>
58
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-ENGINE:CAPS" title="IBUS_INTERFACE_ENGINE">IBUS_INTERFACE_ENGINE</a>
59
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-PANEL:CAPS" title="IBUS_INTERFACE_PANEL">IBUS_INTERFACE_PANEL</a>
60
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-CONFIG:CAPS" title="IBUS_INTERFACE_CONFIG">IBUS_INTERFACE_CONFIG</a>
49
61
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-NOTIFICATIONS:CAPS" title="IBUS_INTERFACE_NOTIFICATIONS">IBUS_INTERFACE_NOTIFICATIONS</a>
50
#define <a class="link" href="ibus-ibusshare.html#IBUS-INTERFACE-PANEL:CAPS" title="IBUS_INTERFACE_PANEL">IBUS_INTERFACE_PANEL</a>
51
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-CONFIG:CAPS" title="IBUS_PATH_CONFIG">IBUS_PATH_CONFIG</a>
52
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-FACTORY:CAPS" title="IBUS_PATH_FACTORY">IBUS_PATH_FACTORY</a>
53
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-IBUS:CAPS" title="IBUS_PATH_IBUS">IBUS_PATH_IBUS</a>
54
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-INPUT-CONTEXT:CAPS" title="IBUS_PATH_INPUT_CONTEXT">IBUS_PATH_INPUT_CONTEXT</a>
55
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-NOTIFICATIONS:CAPS" title="IBUS_PATH_NOTIFICATIONS">IBUS_PATH_NOTIFICATIONS</a>
56
#define <a class="link" href="ibus-ibusshare.html#IBUS-PATH-PANEL:CAPS" title="IBUS_PATH_PANEL">IBUS_PATH_PANEL</a>
57
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-CONFIG:CAPS" title="IBUS_SERVICE_CONFIG">IBUS_SERVICE_CONFIG</a>
58
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-IBUS:CAPS" title="IBUS_SERVICE_IBUS">IBUS_SERVICE_IBUS</a>
59
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-NOTIFICATIONS:CAPS" title="IBUS_SERVICE_NOTIFICATIONS">IBUS_SERVICE_NOTIFICATIONS</a>
60
#define <a class="link" href="ibus-ibusshare.html#IBUS-SERVICE-PANEL:CAPS" title="IBUS_SERVICE_PANEL">IBUS_SERVICE_PANEL</a>
61
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-free-strv" title="ibus_free_strv ()">ibus_free_strv</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **strv</code></em>);
62
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ibus-ibusshare.html#ibus-get-address" title="ibus_get_address ()">ibus_get_address</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
63
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="returnvalue">glong</span></a> <a class="link" href="ibus-ibusshare.html#ibus-get-daemon-uid" title="ibus_get_daemon_uid ()">ibus_get_daemon_uid</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
64
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ibus-ibusshare.html#ibus-get-local-machine-id" title="ibus_get_local_machine_id ()">ibus_get_local_machine_id</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
65
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ibus-ibusshare.html#ibus-get-socket-path" title="ibus_get_socket_path ()">ibus_get_socket_path</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
66
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="ibus-ibusshare.html#ibus-get-timeout" title="ibus_get_timeout ()">ibus_get_timeout</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
67
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ibus-ibusshare.html#ibus-get-user-name" title="ibus_get_user_name ()">ibus_get_user_name</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
62
const <span class="returnvalue">gchar</span> * <a class="link" href="ibus-ibusshare.html#ibus-get-local-machine-id" title="ibus_get_local_machine_id ()">ibus_get_local_machine_id</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
63
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-set-display" title="ibus_set_display ()">ibus_set_display</a> (<em class="parameter"><code>const <span class="type">gchar</span> *display</code></em>);
64
const <span class="returnvalue">gchar</span> * <a class="link" href="ibus-ibusshare.html#ibus-get-address" title="ibus_get_address ()">ibus_get_address</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
65
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-write-address" title="ibus_write_address ()">ibus_write_address</a> (<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>);
66
const <span class="returnvalue">gchar</span> * <a class="link" href="ibus-ibusshare.html#ibus-get-user-name" title="ibus_get_user_name ()">ibus_get_user_name</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
67
<span class="returnvalue">glong</span> <a class="link" href="ibus-ibusshare.html#ibus-get-daemon-uid" title="ibus_get_daemon_uid ()">ibus_get_daemon_uid</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
68
const <span class="returnvalue">gchar</span> * <a class="link" href="ibus-ibusshare.html#ibus-get-socket-path" title="ibus_get_socket_path ()">ibus_get_socket_path</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
69
<span class="returnvalue">gint</span> <a class="link" href="ibus-ibusshare.html#ibus-get-timeout" title="ibus_get_timeout ()">ibus_get_timeout</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
70
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-free-strv" title="ibus_free_strv ()">ibus_free_strv</a> (<em class="parameter"><code><span class="type">gchar</span> **strv</code></em>);
71
const <span class="returnvalue">gchar</span> * <a class="link" href="ibus-ibusshare.html#ibus-key-event-to-string" title="ibus_key_event_to_string ()">ibus_key_event_to_string</a> (<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
72
<em class="parameter"><code><span class="type">guint</span> modifiers</code></em>);
73
<span class="returnvalue">gboolean</span> <a class="link" href="ibus-ibusshare.html#ibus-key-event-from-string" title="ibus_key_event_from_string ()">ibus_key_event_from_string</a> (<em class="parameter"><code>const <span class="type">gchar</span> *string</code></em>,
74
<em class="parameter"><code><span class="type">guint</span> *keyval</code></em>,
75
<em class="parameter"><code><span class="type">guint</span> *modifiers</code></em>);
68
76
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-init" title="ibus_init ()">ibus_init</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
69
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ibus-ibusshare.html#ibus-key-event-from-string" title="ibus_key_event_from_string ()">ibus_key_event_from_string</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>,
70
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *keyval</code></em>,
71
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *modifiers</code></em>);
72
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="ibus-ibusshare.html#ibus-key-event-to-string" title="ibus_key_event_to_string ()">ibus_key_event_to_string</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> modifiers</code></em>);
74
77
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-main" title="ibus_main ()">ibus_main</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
75
78
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-quit" title="ibus_quit ()">ibus_quit</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
76
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-set-display" title="ibus_set_display ()">ibus_set_display</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *display</code></em>);
77
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-set-log-handler" title="ibus_set_log_handler ()">ibus_set_log_handler</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> verbose</code></em>);
79
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-set-log-handler" title="ibus_set_log_handler ()">ibus_set_log_handler</a> (<em class="parameter"><code><span class="type">gboolean</span> verbose</code></em>);
78
80
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-unset-log-handler" title="ibus_unset_log_handler ()">ibus_unset_log_handler</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
79
<span class="returnvalue">void</span> <a class="link" href="ibus-ibusshare.html#ibus-write-address" title="ibus_write_address ()">ibus_write_address</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *address</code></em>);
82
83
<div class="refsect1">
89
90
<div class="refsect1">
90
91
<a name="ibus-ibusshare.details"></a><h2>Details</h2>
91
92
<div class="refsect2">
92
<a name="IBUS-INTERFACE-CONFIG:CAPS"></a><h3>IBUS_INTERFACE_CONFIG</h3>
93
<pre class="programlisting">#define IBUS_INTERFACE_CONFIG "org.freedesktop.IBus.Config"
96
D-Bus interface for IBus config.
100
<div class="refsect2">
101
<a name="IBUS-INTERFACE-ENGINE:CAPS"></a><h3>IBUS_INTERFACE_ENGINE</h3>
102
<pre class="programlisting">#define IBUS_INTERFACE_ENGINE "org.freedesktop.IBus.Engine"
105
D-Bus interface for IBus engine.
109
<div class="refsect2">
110
<a name="IBUS-INTERFACE-FACTORY:CAPS"></a><h3>IBUS_INTERFACE_FACTORY</h3>
111
<pre class="programlisting">#define IBUS_INTERFACE_FACTORY "org.freedesktop.IBus.Factory"
114
D-Bus interface for IBus factory.
93
<a name="IBUS-DEPRECATED:CAPS"></a><h3>IBUS_DEPRECATED</h3>
94
<pre class="programlisting">#define IBUS_DEPRECATED
100
<div class="refsect2">
101
<a name="IBUS-SERVICE-IBUS:CAPS"></a><h3>IBUS_SERVICE_IBUS</h3>
102
<pre class="programlisting">#define IBUS_SERVICE_IBUS "org.freedesktop.IBus"
105
Address of IBus service.
109
<div class="refsect2">
110
<a name="IBUS-SERVICE-PANEL:CAPS"></a><h3>IBUS_SERVICE_PANEL</h3>
111
<pre class="programlisting">#define IBUS_SERVICE_PANEL "org.freedesktop.IBus.Panel"
114
Address of IBus panel service.
118
<div class="refsect2">
119
<a name="IBUS-SERVICE-CONFIG:CAPS"></a><h3>IBUS_SERVICE_CONFIG</h3>
120
<pre class="programlisting">#define IBUS_SERVICE_CONFIG "org.freedesktop.IBus.Config"
123
Address of IBus config service.
127
<div class="refsect2">
128
<a name="IBUS-SERVICE-NOTIFICATIONS:CAPS"></a><h3>IBUS_SERVICE_NOTIFICATIONS</h3>
129
<pre class="programlisting">#define IBUS_SERVICE_NOTIFICATIONS "org.freedesktop.IBus.Notifications"
132
Address of IBus notification service.
136
<div class="refsect2">
137
<a name="IBUS-PATH-IBUS:CAPS"></a><h3>IBUS_PATH_IBUS</h3>
138
<pre class="programlisting">#define IBUS_PATH_IBUS "/org/freedesktop/IBus"
145
<div class="refsect2">
146
<a name="IBUS-PATH-FACTORY:CAPS"></a><h3>IBUS_PATH_FACTORY</h3>
147
<pre class="programlisting">#define IBUS_PATH_FACTORY "/org/freedesktop/IBus/Factory"
150
D-Bus path for IBus factory.
154
<div class="refsect2">
155
<a name="IBUS-PATH-PANEL:CAPS"></a><h3>IBUS_PATH_PANEL</h3>
156
<pre class="programlisting">#define IBUS_PATH_PANEL "/org/freedesktop/IBus/Panel"
159
D-Bus path for IBus panel.
163
<div class="refsect2">
164
<a name="IBUS-PATH-CONFIG:CAPS"></a><h3>IBUS_PATH_CONFIG</h3>
165
<pre class="programlisting">#define IBUS_PATH_CONFIG "/org/freedesktop/IBus/Config"
168
D-Bus path for IBus config.
172
<div class="refsect2">
173
<a name="IBUS-PATH-NOTIFICATIONS:CAPS"></a><h3>IBUS_PATH_NOTIFICATIONS</h3>
174
<pre class="programlisting">#define IBUS_PATH_NOTIFICATIONS "/org/freedesktop/IBus/Notifications"
177
D-Bus path for IBus notifications.
181
<div class="refsect2">
182
<a name="IBUS-PATH-INPUT-CONTEXT:CAPS"></a><h3>IBUS_PATH_INPUT_CONTEXT</h3>
183
<pre class="programlisting">#define IBUS_PATH_INPUT_CONTEXT "/org/freedesktop/IBus/InputContext_%d"
186
Template of D-Bus path for IBus input context.
144
252
<div class="refsect2">
145
<a name="IBUS-INTERFACE-PANEL:CAPS"></a><h3>IBUS_INTERFACE_PANEL</h3>
146
<pre class="programlisting">#define IBUS_INTERFACE_PANEL "org.freedesktop.IBus.Panel"
149
D-Bus interface for IBus panel.
153
<div class="refsect2">
154
<a name="IBUS-PATH-CONFIG:CAPS"></a><h3>IBUS_PATH_CONFIG</h3>
155
<pre class="programlisting">#define IBUS_PATH_CONFIG "/org/freedesktop/IBus/Config"
158
D-Bus path for IBus config.
162
<div class="refsect2">
163
<a name="IBUS-PATH-FACTORY:CAPS"></a><h3>IBUS_PATH_FACTORY</h3>
164
<pre class="programlisting">#define IBUS_PATH_FACTORY "/org/freedesktop/IBus/Factory"
167
D-Bus path for IBus factory.
171
<div class="refsect2">
172
<a name="IBUS-PATH-IBUS:CAPS"></a><h3>IBUS_PATH_IBUS</h3>
173
<pre class="programlisting">#define IBUS_PATH_IBUS "/org/freedesktop/IBus"
180
<div class="refsect2">
181
<a name="IBUS-PATH-INPUT-CONTEXT:CAPS"></a><h3>IBUS_PATH_INPUT_CONTEXT</h3>
182
<pre class="programlisting">#define IBUS_PATH_INPUT_CONTEXT "/org/freedesktop/IBus/InputContext_%d"
185
Template of D-Bus path for IBus input context.
189
<div class="refsect2">
190
<a name="IBUS-PATH-NOTIFICATIONS:CAPS"></a><h3>IBUS_PATH_NOTIFICATIONS</h3>
191
<pre class="programlisting">#define IBUS_PATH_NOTIFICATIONS "/org/freedesktop/IBus/Notifications"
194
D-Bus path for IBus notifications.
198
<div class="refsect2">
199
<a name="IBUS-PATH-PANEL:CAPS"></a><h3>IBUS_PATH_PANEL</h3>
200
<pre class="programlisting">#define IBUS_PATH_PANEL "/org/freedesktop/IBus/Panel"
203
D-Bus path for IBus panel.
207
<div class="refsect2">
208
<a name="IBUS-SERVICE-CONFIG:CAPS"></a><h3>IBUS_SERVICE_CONFIG</h3>
209
<pre class="programlisting">#define IBUS_SERVICE_CONFIG "org.freedesktop.IBus.Config"
212
Address of IBus config service.
216
<div class="refsect2">
217
<a name="IBUS-SERVICE-IBUS:CAPS"></a><h3>IBUS_SERVICE_IBUS</h3>
218
<pre class="programlisting">#define IBUS_SERVICE_IBUS "org.freedesktop.IBus"
221
Address of IBus service.
225
<div class="refsect2">
226
<a name="IBUS-SERVICE-NOTIFICATIONS:CAPS"></a><h3>IBUS_SERVICE_NOTIFICATIONS</h3>
227
<pre class="programlisting">#define IBUS_SERVICE_NOTIFICATIONS "org.freedesktop.IBus.Notifications"
230
Address of IBus notification service.
234
<div class="refsect2">
235
<a name="IBUS-SERVICE-PANEL:CAPS"></a><h3>IBUS_SERVICE_PANEL</h3>
236
<pre class="programlisting">#define IBUS_SERVICE_PANEL "org.freedesktop.IBus.Panel"
239
Address of IBus panel service.
243
<div class="refsect2">
244
<a name="ibus-free-strv"></a><h3>ibus_free_strv ()</h3>
245
<pre class="programlisting"><span class="returnvalue">void</span> ibus_free_strv (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **strv</code></em>);</pre>
246
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
247
<h3 class="title">Warning</h3>
248
<p><code class="literal">ibus_free_strv</code> is deprecated and should not be used in newly-written code. This function has been deprecated and should
249
not be used in newly written code.</p>
252
Free a list of strings.
254
<div class="variablelist"><table border="0">
255
<col align="left" valign="top">
257
<td><p><span class="term"><em class="parameter"><code>strv</code></em> :</span></p></td>
258
<td>List of strings.</td>
253
<a name="ibus-get-local-machine-id"></a><h3>ibus_get_local_machine_id ()</h3>
254
<pre class="programlisting">const <span class="returnvalue">gchar</span> * ibus_get_local_machine_id (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
256
Obtains the machine UUID of the machine this process is running on.
258
<div class="variablelist"><table border="0" class="variablelist">
260
<col align="left" valign="top">
264
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
265
<td>A newly allocated string that shows the UUID of the machine.</td>
270
<div class="refsect2">
271
<a name="ibus-set-display"></a><h3>ibus_set_display ()</h3>
272
<pre class="programlisting"><span class="returnvalue">void</span> ibus_set_display (<em class="parameter"><code>const <span class="type">gchar</span> *display</code></em>);</pre>
274
Set the display address.
276
<div class="variablelist"><table border="0" class="variablelist">
278
<col align="left" valign="top">
282
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
283
<td>Display address, as in DISPLAY environment for X.</td>
263
288
<div class="refsect2">
264
289
<a name="ibus-get-address"></a><h3>ibus_get_address ()</h3>
265
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * ibus_get_address (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
290
<pre class="programlisting">const <span class="returnvalue">gchar</span> * ibus_get_address (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
267
292
Return the D-Bus address of IBus.
268
293
It will find the address from following source:
277
302
See also: <a class="link" href="ibus-ibusshare.html#ibus-write-address" title="ibus_write_address ()"><code class="function">ibus_write_address()</code></a>.
279
<div class="variablelist"><table border="0">
280
<col align="left" valign="top">
282
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
283
<td>D-Bus address of IBus. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for not found.</td>
304
<div class="variablelist"><table border="0" class="variablelist">
306
<col align="left" valign="top">
310
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
311
<td>D-Bus address of IBus. <code class="literal">NULL</code> for not found.</td>
316
<div class="refsect2">
317
<a name="ibus-write-address"></a><h3>ibus_write_address ()</h3>
318
<pre class="programlisting"><span class="returnvalue">void</span> ibus_write_address (<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>);</pre>
320
Write D-Bus address to socket file.
323
See also: <a class="link" href="ibus-ibusshare.html#ibus-get-address" title="ibus_get_address ()"><code class="function">ibus_get_address()</code></a>.
325
<div class="variablelist"><table border="0" class="variablelist">
327
<col align="left" valign="top">
331
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
332
<td>D-Bus address of IBus.</td>
337
<div class="refsect2">
338
<a name="ibus-get-user-name"></a><h3>ibus_get_user_name ()</h3>
339
<pre class="programlisting">const <span class="returnvalue">gchar</span> * ibus_get_user_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
341
Get the current user name.
344
<div class="orderedlist"><ol class="orderedlist" type="1">
345
<li class="listitem"><p><code class="function">getlogin()</code></p></li>
346
<li class="listitem"><p>Environment variable SUDO_USER</p></li>
347
<li class="listitem"><p>Environment variable USERHELPER_UID</p></li>
348
<li class="listitem"><p>Environment variable USERNAME</p></li>
349
<li class="listitem"><p>Environment variable LOGNAME</p></li>
350
<li class="listitem"><p>Environment variable USER</p></li>
351
<li class="listitem"><p>Environment variable LNAME</p></li>
355
<div class="variablelist"><table border="0" class="variablelist">
357
<col align="left" valign="top">
361
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
362
<td>A newly allocated string that stores current user name.</td>
288
367
<div class="refsect2">
289
368
<a name="ibus-get-daemon-uid"></a><h3>ibus_get_daemon_uid ()</h3>
290
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="returnvalue">glong</span></a> ibus_get_daemon_uid (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
369
<pre class="programlisting"><span class="returnvalue">glong</span> ibus_get_daemon_uid (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
291
370
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
292
371
<h3 class="title">Warning</h3>
293
372
<p><code class="literal">ibus_get_daemon_uid</code> is deprecated and should not be used in newly-written code. This function has been deprecated and should
308
390
<div class="refsect2">
309
<a name="ibus-get-local-machine-id"></a><h3>ibus_get_local_machine_id ()</h3>
310
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * ibus_get_local_machine_id (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
312
Obtains the machine UUID of the machine this process is running on.
314
<div class="variablelist"><table border="0">
315
<col align="left" valign="top">
317
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
318
<td>A newly allocated string that shows the UUID of the machine.</td>
323
<div class="refsect2">
324
391
<a name="ibus-get-socket-path"></a><h3>ibus_get_socket_path ()</h3>
325
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * ibus_get_socket_path (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
392
<pre class="programlisting">const <span class="returnvalue">gchar</span> * ibus_get_socket_path (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
327
394
Get the path of socket file.
329
<div class="variablelist"><table border="0">
396
<div class="variablelist"><table border="0" class="variablelist">
330
398
<col align="left" valign="top">
332
402
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
333
403
<td>A newly allocated string that stores the path of socket file.</td>
354
427
<div class="refsect2">
355
<a name="ibus-get-user-name"></a><h3>ibus_get_user_name ()</h3>
356
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * ibus_get_user_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
358
Get the current user name.
361
<div class="orderedlist"><ol class="orderedlist" type="1">
362
<li class="listitem"><p><code class="function">getlogin()</code></p></li>
363
<li class="listitem"><p>Environment variable SUDO_USER</p></li>
364
<li class="listitem"><p>Environment variable USERHELPER_UID</p></li>
365
<li class="listitem"><p>Environment variable USERNAME</p></li>
366
<li class="listitem"><p>Environment variable LOGNAME</p></li>
367
<li class="listitem"><p>Environment variable USER</p></li>
368
<li class="listitem"><p>Environment variable LNAME</p></li>
372
<div class="variablelist"><table border="0">
428
<a name="ibus-free-strv"></a><h3>ibus_free_strv ()</h3>
429
<pre class="programlisting"><span class="returnvalue">void</span> ibus_free_strv (<em class="parameter"><code><span class="type">gchar</span> **strv</code></em>);</pre>
430
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
431
<h3 class="title">Warning</h3>
432
<p><code class="literal">ibus_free_strv</code> is deprecated and should not be used in newly-written code. This function has been deprecated and should
433
not be used in newly written code.</p>
436
Free a list of strings.
438
<div class="variablelist"><table border="0" class="variablelist">
373
440
<col align="left" valign="top">
444
<td><p><span class="term"><em class="parameter"><code>strv</code></em> :</span></p></td>
445
<td>List of strings.</td>
450
<div class="refsect2">
451
<a name="ibus-key-event-to-string"></a><h3>ibus_key_event_to_string ()</h3>
452
<pre class="programlisting">const <span class="returnvalue">gchar</span> * ibus_key_event_to_string (<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
453
<em class="parameter"><code><span class="type">guint</span> modifiers</code></em>);</pre>
455
Return the name of a key symbol and modifiers.
458
For example, if press ctrl, shift, and enter, then this function returns:
461
<div class="variablelist"><table border="0" class="variablelist">
463
<col align="left" valign="top">
468
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
472
<td><p><span class="term"><em class="parameter"><code>modifiers</code></em> :</span></p></td>
473
<td>Modifiers such as Ctrl or Shift.</td>
375
476
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
376
<td>A newly allocated string that stores current user name.</td>
477
<td>The name of a key symbol and modifier.</td>
381
483
<div class="refsect2">
382
<a name="ibus-init"></a><h3>ibus_init ()</h3>
383
<pre class="programlisting"><span class="returnvalue">void</span> ibus_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
388
It is actually a wrapper of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a>.
392
<div class="refsect2">
393
484
<a name="ibus-key-event-from-string"></a><h3>ibus_key_event_from_string ()</h3>
394
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> ibus_key_event_from_string (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>,
395
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *keyval</code></em>,
396
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *modifiers</code></em>);</pre>
485
<pre class="programlisting"><span class="returnvalue">gboolean</span> ibus_key_event_from_string (<em class="parameter"><code>const <span class="type">gchar</span> *string</code></em>,
486
<em class="parameter"><code><span class="type">guint</span> *keyval</code></em>,
487
<em class="parameter"><code><span class="type">guint</span> *modifiers</code></em>);</pre>
398
489
Parse key event string and return key symbol and modifiers.
400
<div class="variablelist"><table border="0">
491
<div class="variablelist"><table border="0" class="variablelist">
401
493
<col align="left" valign="top">
404
498
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
423
517
<div class="refsect2">
424
<a name="ibus-key-event-to-string"></a><h3>ibus_key_event_to_string ()</h3>
425
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * ibus_key_event_to_string (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>,
426
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> modifiers</code></em>);</pre>
428
Return the name of a key symbol and modifiers.
431
For example, if press ctrl, shift, and enter, then this function returns:
434
<div class="variablelist"><table border="0">
435
<col align="left" valign="top">
438
<td><p><span class="term"><em class="parameter"><code>keyval</code></em> :</span></p></td>
442
<td><p><span class="term"><em class="parameter"><code>modifiers</code></em> :</span></p></td>
443
<td>Modifiers such as Ctrl or Shift.</td>
446
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
447
<td>The name of a key symbol and modifier.</td>
518
<a name="ibus-init"></a><h3>ibus_init ()</h3>
519
<pre class="programlisting"><span class="returnvalue">void</span> ibus_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
521
Initialize the ibus types.
453
525
<div class="refsect2">