Blame src/ibuserror.c

Packit Service 1d8f1c
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
Packit Service 1d8f1c
/* vim:set et sts=4: */
Packit Service 1d8f1c
/* ibus - The Input Bus
Packit Service 1d8f1c
 * Copyright (C) 2011 Peng Huang <shawn.p.huang@gmail.com>
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This library is free software; you can redistribute it and/or
Packit Service 1d8f1c
 * modify it under the terms of the GNU Lesser General Public
Packit Service 1d8f1c
 * License as published by the Free Software Foundation; either
Packit Service 1d8f1c
 * version 2.1 of the License, or (at your option) any later version.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This library is distributed in the hope that it will be useful,
Packit Service 1d8f1c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 1d8f1c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 1d8f1c
 * Lesser General Public License for more details.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * You should have received a copy of the GNU Lesser General Public
Packit Service 1d8f1c
 * License along with this library; if not, write to the Free Software
Packit Service 1d8f1c
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
Packit Service 1d8f1c
 * USA
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
Packit Service 1d8f1c
#include "ibuserror.h"
Packit Service 1d8f1c
Packit Service 1d8f1c
#include <gio/gio.h>
Packit Service 1d8f1c
#include "ibustypes.h"
Packit Service 1d8f1c
Packit Service 1d8f1c
static const GDBusErrorEntry ibus_error_entries[] =
Packit Service 1d8f1c
{
Packit Service 1d8f1c
    { IBUS_ERROR_NO_ENGINE,         "org.freedesktop.IBus.Error.NoEngine" },
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
GQuark
Packit Service 1d8f1c
ibus_error_quark (void)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
    static volatile gsize quark_volatile = 0;
Packit Service 1d8f1c
    g_dbus_error_register_error_domain ("ibus-error-quark",
Packit Service 1d8f1c
                                        &quark_volatile,
Packit Service 1d8f1c
                                        ibus_error_entries,
Packit Service 1d8f1c
                                        G_N_ELEMENTS (ibus_error_entries));
Packit Service 1d8f1c
    return (GQuark) quark_volatile;
Packit Service 1d8f1c
}