1 /* vim:set et sts=4: */
2 /* ibus - The Input Bus
3 * Copyright (C) 2008-2009 Huang Peng <shawn.p.huang@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 #ifndef __IBUS_SHARE_H_
21 #define __IBUS_SHARE_H_
25 #define IBUS_SERVICE_IBUS "org.freedesktop.IBus"
26 #define IBUS_SERVICE_PANEL "org.freedesktop.IBus.Panel"
27 #define IBUS_SERVICE_CONFIG "org.freedesktop.IBus.Config"
28 #define IBUS_SERVICE_NOTIFICATIONS "org.freedesktop.IBus.Notifications"
30 #define IBUS_PATH_IBUS "/org/freedesktop/IBus"
31 #define IBUS_PATH_FACTORY "/org/freedesktop/IBus/Factory"
32 #define IBUS_PATH_PANEL "/org/freedesktop/IBus/Panel"
33 #define IBUS_PATH_CONFIG "/org/freedesktop/IBus/Config"
34 #define IBUS_PATH_NOTIFICATIONS "/org/freedesktop/IBus/Notifications"
35 #define IBUS_PATH_INPUT_CONTEXT "/org/freedesktop/IBus/InputContext_%d"
37 #define IBUS_INTERFACE_IBUS "org.freedesktop.IBus"
38 #define IBUS_INTERFACE_INPUT_CONTEXT \
39 "org.freedesktop.IBus.InputContext"
40 #define IBUS_INTERFACE_FACTORY "org.freedesktop.IBus.Factory"
41 #define IBUS_INTERFACE_ENGINE "org.freedesktop.IBus.Engine"
42 #define IBUS_INTERFACE_PANEL "org.freedesktop.IBus.Panel"
43 #define IBUS_INTERFACE_CONFIG "org.freedesktop.IBus.Config"
44 #define IBUS_INTERFACE_NOTIFICATIONS "org.freedesktop.IBus.Notifications"
48 const gchar *ibus_get_local_machine_id
50 void ibus_set_display (const gchar *display);
51 const gchar *ibus_get_address (void);
52 void ibus_write_address (const gchar *address);
53 const gchar *ibus_get_user_name (void);
54 glong ibus_get_daemon_uid (void);
55 const gchar *ibus_get_socket_path (void);
57 const gchar *ibus_keyval_name (guint keyval);
58 guint ibus_keyval_from_name (const gchar *keyval_name);
59 void ibus_free_strv (gchar **strv);
60 const gchar *ibus_key_event_to_string
64 gboolean ibus_key_event_from_string
68 void ibus_init (void);
69 void ibus_main (void);
70 void ibus_quit (void);