Remove ibus_get_socket_folder
[platform/upstream/ibus.git] / src / ibusshare.h
1 /* vim:set et sts=4: */
2 /* ibus - The Input Bus
3  * Copyright (C) 2008-2009 Huang Peng <shawn.p.huang@gmail.com>
4  *
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.
9  *
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.
14  *
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.
19  */
20 #ifndef __IBUS_SHARE_H_
21 #define __IBUS_SHARE_H_
22
23 #include <glib.h>
24
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"
29
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"
36
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"
45
46 G_BEGIN_DECLS
47
48 const gchar     *ibus_get_local_machine_id
49                                         (void);
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);
56
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
61                                         (guint           keyval,
62                                          guint           modifiers);
63
64 gboolean         ibus_key_event_from_string
65                                         (const gchar    *string,
66                                          guint          *keyval,
67                                          guint          *modifiers);
68 void             ibus_init              (void);
69 void             ibus_main              (void);
70 void             ibus_quit              (void);
71
72 G_END_DECLS
73 #endif