Blame src/ibuscomposetable.h

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) 2013-2014 Peng Huang <shawn.p.huang@gmail.com>
Packit Service 1d8f1c
 * Copyright (C) 2013-2016 Takao Fujiwara <takao.fujiwara1@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
#ifndef __IBUS_COMPOSETABLE_H_
Packit Service 1d8f1c
#define __IBUS_COMPOSETABLE_H_
Packit Service 1d8f1c
Packit Service 1d8f1c
#include <glib.h>
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
G_BEGIN_DECLS
Packit Service 1d8f1c
Packit Service 1d8f1c
typedef struct _IBusComposeTable IBusComposeTable;
Packit Service 1d8f1c
typedef struct _IBusComposeTableCompact IBusComposeTableCompact;
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _IBusComposeTable
Packit Service 1d8f1c
{
Packit Service 1d8f1c
    guint16 *data;
Packit Service 1d8f1c
    gint max_seq_len;
Packit Service 1d8f1c
    gint n_seqs;
Packit Service 1d8f1c
    guint32 id;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _IBusComposeTableCompact
Packit Service 1d8f1c
{
Packit Service 1d8f1c
    const guint16 *data;
Packit Service 1d8f1c
    gint max_seq_len;
Packit Service 1d8f1c
    gint n_index_size;
Packit Service 1d8f1c
    gint n_index_stride;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
IBusComposeTable *ibus_compose_table_new_with_file (const gchar *compose_file);
Packit Service 1d8f1c
GSList           *ibus_compose_table_list_add_array
Packit Service 1d8f1c
                                                   (GSList
Packit Service 1d8f1c
                                                                *compose_tables,
Packit Service 1d8f1c
                                                    const guint16
Packit Service 1d8f1c
                                                                *data,
Packit Service 1d8f1c
                                                    gint         max_seq_len,
Packit Service 1d8f1c
                                                    gint         n_seqs);
Packit Service 1d8f1c
GSList           *ibus_compose_table_list_add_file (GSList
Packit Service 1d8f1c
                                                                *compose_tables,
Packit Service 1d8f1c
                                                    const gchar *compose_file);
Packit Service 1d8f1c
Packit Service 1d8f1c
G_BEGIN_DECLS
Packit Service 1d8f1c
#endif