1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
2 /* vim:set et sts=4: */
3 /* ibus - The Input Bus
4 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
5 * Copyright (C) 2008-2010 Red Hat, Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 #if !defined (__IBUS_H_INSIDE__) && !defined (IBUS_COMPILATION)
24 #error "Only <ibus.h> can be included directly"
28 * SECTION: ibusinternal
29 * @short_description: IBus internal.
30 * @title: IBusInternal
33 * This section contain several IBus house keeping functions.
36 #ifndef __IBUS_INTERNEL_H_
37 #define __IBUS_INTERNEL_H_
43 * @returns: The canonical representation for the string.
45 * Returns a canonical representation for string.
46 * Interned strings can be compared for equality by comparing the pointers, instead of using strcmp().
48 #define I_(string) g_intern_static_string (string)
53 * Address of D-Bus service.
55 #define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
60 * D-Bus path for D-Bus.
62 #define DBUS_PATH_DBUS "/org/freedesktop/DBus"
65 * DBUS_INTERFACE_DBUS:
67 * D-Bus interface for D-Bus.
69 #define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"