From 13e6e4ab1290cda9426eaedfeda70f7491b6b083 Mon Sep 17 00:00:00 2001 From: Perberos Date: Sun, 6 Nov 2011 17:13:49 -0300 Subject: initial --- src/terminal-encoding.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/terminal-encoding.h (limited to 'src/terminal-encoding.h') diff --git a/src/terminal-encoding.h b/src/terminal-encoding.h new file mode 100644 index 0000000..ddfe9ed --- /dev/null +++ b/src/terminal-encoding.h @@ -0,0 +1,61 @@ +/* Encoding stuff */ + +/* + * Copyright © 2002 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef TERMINAL_ENCODING_H +#define TERMINAL_ENCODING_H + +#include + +#define TERMINAL_TYPE_ENCODING (terminal_encoding_get_type ()) + +typedef struct +{ + int refcount; + char *id; + char *name; + guint valid : 1; + guint validity_checked : 1; + guint is_custom : 1; + guint is_active : 1; +} TerminalEncoding; + +GType terminal_encoding_get_type (void); + +TerminalEncoding *terminal_encoding_new (const char *charset, + const char *display_name, + gboolean is_custom, + gboolean force_valid); + +TerminalEncoding *terminal_encoding_ref (TerminalEncoding *encoding); + +void terminal_encoding_unref (TerminalEncoding *encoding); + +gboolean terminal_encoding_is_valid (TerminalEncoding *encoding); + +const char *terminal_encoding_get_id (TerminalEncoding *encoding); + +const char *terminal_encoding_get_charset (TerminalEncoding *encoding); + +GHashTable *terminal_encodings_get_builtins (void); + +void terminal_encoding_dialog_show (GtkWindow *transient_parent); + +#endif /* TERMINAL_ENCODING_H */ -- cgit v1.2.1