1 /* 2 * Copyright (C) 2002 Red Hat, Inc. 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19 /* The interfaces in this file are subject to change at any time. */ 20 21 #ifndef vte_iso2022_h_included 22 #define vte_iso2022_h_included 23 24 25 #include <glib.h> 26 #include <glib-object.h> 27 #include "buffer.h" 28 #include "matcher.h" 29 30 G_BEGIN_DECLS 31 32 struct _vte_iso2022_state; 33 struct _vte_iso2022_state *_vte_iso2022_state_new(const char *native_codeset); 34 void _vte_iso2022_state_set_codeset(struct _vte_iso2022_state *state, 35 const char *codeset); 36 const char *_vte_iso2022_state_get_codeset(struct _vte_iso2022_state *state); 37 gsize _vte_iso2022_process(struct _vte_iso2022_state *state, 38 const guchar *input, gsize length, 39 GArray *gunichars); 40 void _vte_iso2022_state_free(struct _vte_iso2022_state *); 41 42 G_END_DECLS 43 44 #endif 45