aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-30 13:13:35 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-30 16:58:46 -0700
commitbd895aa76c318ab3bc1b2d7d43d05fd7a2ccdf84 (patch)
treec103814b85880b3887113f41c5a73b247911f9da /input.h
parentd4fafeb6d66e415e85c67700e5a370765c09bb93 (diff)
Changes to bind_mode implementation based on code review and merge
errors
Diffstat (limited to 'input.h')
-rw-r--r--input.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/input.h b/input.h
index 29ce7871..ed2614ca 100644
--- a/input.h
+++ b/input.h
@@ -128,9 +128,9 @@ void input_mapping_add(const wchar_t *sequence, const wchar_t **commands, size_t
const wchar_t *mode = DEFAULT_BIND_MODE, const wchar_t *new_mode = DEFAULT_BIND_MODE);
/**
- Insert all mapping names into the specified wcstring_list_t
+ Returns all mapping names
*/
-void input_mapping_get_names(wcstring_list_t &lst);
+wcstring_list_t input_mapping_get_names();
/**
Erase binding for specified key sequence
@@ -140,17 +140,17 @@ bool input_mapping_erase(const wchar_t *sequence, const wchar_t *mode = DEFAULT_
/**
Gets the command bound to the specified key sequence. Returns true if it exists, false if not.
*/
-bool input_mapping_get(const wcstring &sequence, std::vector<wcstring> &cmds, wcstring &mode, wcstring &new_mode);
+bool input_mapping_get(const wcstring &sequence, wcstring_list_t *out_cmds, wcstring *out_mode, wcstring *out_new_mode);
/**
Return the current bind mode
*/
-const wchar_t *input_get_bind_mode();
+wcstring input_get_bind_mode();
/**
Set the current bind mode
*/
-bool input_set_bind_mode(const wchar_t *bind_mode);
+void input_set_bind_mode(const wcstring &bind_mode);
wchar_t input_function_pop_arg();