summaryrefslogtreecommitdiff
path: root/src/history.h
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2008-06-09 23:50:27 +0200
committerShawn <sabetts@juicebox.(none)>2008-10-22 14:17:43 -0700
commitd801644502adf42570e9a5b75fcaa013f613fc5a (patch)
treea30537a038c36c0effc0ab0f6f9f6565a206b558 /src/history.h
parent22cea909c3d1b695424ef85153917b00bfb1261c (diff)
downloadratpoison-d801644502adf42570e9a5b75fcaa013f613fc5a.zip
define different history types and use them
(implementation does not separate them yet, though)
Diffstat (limited to 'src/history.h')
-rw-r--r--src/history.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/history.h b/src/history.h
index b133df1..f6b6dd9 100644
--- a/src/history.h
+++ b/src/history.h
@@ -21,13 +21,21 @@
#ifndef _RATPOISON_HISTORY_H
#define _RATPOISON_HISTORY_H 1
+enum { hist_NONE=0, hist_COMMAND, hist_SHELLCMD,
+ hist_SELECT, hist_KEYMAP, hist_KEY,
+ hist_WINDOW, hist_GRAVITY, hist_GROUP,
+ hist_HOOK, hist_VARIABLE, hist_PROMPT,
+ hist_OTHER,
+ /* must be last, do not use, for length only: */
+ hist_COUNT};
+
void history_load (void);
void history_save (void);
void history_resize (int size);
void history_reset (void);
-void history_add (char *item);
-char *history_next (void);
-char *history_previous (void);
-int history_expand_line (char *string, char **output);
+void history_add (int, char *item);
+const char *history_next (int);
+const char *history_previous (int);
+int history_expand_line (int, char *string, char **output);
#endif /* ! _RATPOISON_HISTORY_H */