summaryrefslogtreecommitdiff
path: root/src/terminal-encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-encoding.h')
-rw-r--r--src/terminal-encoding.h61
1 files changed, 61 insertions, 0 deletions
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 <gtk/gtk.h>
+
+#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 */