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