aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-31 15:57:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-31 15:57:30 -0800
commitbef046a51a26b87cb5eb8a6e159b78c931a2e253 (patch)
tree50e30ebe47c41414b0f394bb966bdfd5443cf237 /input.h
parent78322a63218e8c66a4788dc79e252db4050bca23 (diff)
More work to migrate off of ad-hoc data structures
Diffstat (limited to 'input.h')
-rw-r--r--input.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/input.h b/input.h
index cd275674..99840c7d 100644
--- a/input.h
+++ b/input.h
@@ -97,19 +97,19 @@ void input_unreadch( wint_t ch );
void input_mapping_add( const wchar_t *sequence, const wchar_t *command );
/**
- Insert all mapping names into the specified array_list_t
+ Insert all mapping names into the specified wcstring_list_t
*/
-void input_mapping_get_names( array_list_t *list );
+void input_mapping_get_names( wcstring_list_t &lst );
/**
Erase binding for specified key sequence
*/
-int input_mapping_erase( const wchar_t *sequence );
+bool input_mapping_erase( const wchar_t *sequence );
/**
- Return the command bound to the specified key sequence
+ Gets the command bound to the specified key sequence. Returns true if it exists, false if not.
*/
-const wchar_t *input_mapping_get( const wchar_t *sequence );
+bool input_mapping_get( const wcstring &sequence, wcstring &cmd );
/**
Return the sequence for the terminfo variable of the specified name.
@@ -122,7 +122,7 @@ const wchar_t *input_terminfo_get_sequence( const wchar_t *name );
/**
Return the name of the terminfo variable with the specified sequence
*/
-const wchar_t *input_terminfo_get_name( const wchar_t *seq );
+bool input_terminfo_get_name( const wcstring &seq, wcstring &name );
/**
Return a list of all known terminfo names
@@ -133,7 +133,7 @@ void input_terminfo_get_names( array_list_t *lst, int skip_null );
/**
Returns the input function code for the given input function name.
*/
-wchar_t input_function_get_code( const wchar_t *name );
+wchar_t input_function_get_code( const wcstring &name );
/**
Returns a list of all existing input function names