iso2022.h 1.48 KB
Newer Older
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
1 2 3
/*
 * Copyright (C) 2002 Red Hat, Inc.
 *
4 5 6 7
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
8
 *
9 10
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 * Lesser General Public License for more details.
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
13
 *
14 15 16
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
17 18
 */

19 20
/* The interfaces in this file are subject to change at any time. */

Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
21 22 23 24 25 26
#ifndef vte_iso2022_h_included
#define vte_iso2022_h_included


#include <glib.h>
#include <glib-object.h>
27
#include "buffer.h"
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
28 29 30

G_BEGIN_DECLS

31
struct _vte_iso2022_state;
32
struct _vte_iso2022_state *_vte_iso2022_state_new(const char *native_codeset);
33 34 35 36
void _vte_iso2022_state_set_codeset(struct _vte_iso2022_state *state,
				    const char *codeset);
const char *_vte_iso2022_state_get_codeset(struct _vte_iso2022_state *state);
gsize _vte_iso2022_process(struct _vte_iso2022_state *state,
37
                          const guchar *input, gsize length,
38 39
			  GArray *gunichars);
void _vte_iso2022_state_free(struct _vte_iso2022_state *);
40

Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
41 42 43
G_END_DECLS

#endif