aboutsummaryrefslogtreecommitdiffstats
path: root/src/strings.h
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-03-17 22:17:07 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-03-17 22:17:07 -0500
commitfe54d4f2cb2706879c596776200dfc7ad693e24b (patch)
tree811be0a1bc66c59afea769feb701ae8bd826da1d /src/strings.h
parent62eb308c26ef29ade6ab338af9c007044126de75 (diff)
downloadluancurses-fe54d4f2cb2706879c596776200dfc7ad693e24b.tar.gz
luancurses-fe54d4f2cb2706879c596776200dfc7ad693e24b.zip
reorganize string <-> enum stuff, move it into its own file, separate it out more
Diffstat (limited to 'src/strings.h')
-rw-r--r--src/strings.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/strings.h b/src/strings.h
new file mode 100644
index 0000000..757c686
--- /dev/null
+++ b/src/strings.h
@@ -0,0 +1,18 @@
+#ifndef STRINGS_H
+#define STRINGS_H
+
+typedef void (*table_cb)(const char* str, int tag, void* data);
+
+int get_color_enum(const char* str);
+int get_mode_enum(const char* str);
+int get_key_enum(const char* str);
+
+const char* get_color_str(int tag);
+const char* get_mode_str(int tag);
+const char* get_key_str(int tag);
+
+void each_color(table_cb cb, void* data);
+void each_mode(table_cb cb, void* data);
+void each_key(table_cb cb, void* data);
+
+#endif