X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=interactive.h;h=82d3cd71c4cc870d2a2535faeedd22f489444ab3;hp=0af2ef40c27e38950654044ceb0770951ff328ef;hb=594aec07b3b0511754129be74a8d643c38e1ae77;hpb=6cb789ba07d3830f1d7fbff9daa059eb1c99c166 diff --git a/interactive.h b/interactive.h index 0af2ef40..82d3cd71 100644 --- a/interactive.h +++ b/interactive.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Andre Noll + * Copyright (C) 2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -33,7 +33,7 @@ struct i9e_completion_result { * * \param name Determines the name of the function to be defined. */ -#define I9E_DUMMY_COMPLETER(name) void name ## _completer( \ +#define I9E_DUMMY_COMPLETER(name) static void name ## _completer( \ __a_unused struct i9e_completion_info *ciname, \ struct i9e_completion_result *result) {result->matches = NULL;} @@ -59,6 +59,10 @@ struct i9e_client_info { int loglevel; /** Complete input lines are passed to this callback function. */ int (*line_handler)(char *line); + /** In single key mode, this callback is executed instead. */ + int (*key_handler)(int key); + /** The array of valid key sequences for libreadline. */ + char **bound_keyseqs; /** File descriptors to use for input/output/log. */ int fds[3]; /** Text of the current prompt. */ @@ -80,6 +84,7 @@ struct i9e_client_info { int i9e_open(struct i9e_client_info *ici, struct sched *s); void i9e_attach_to_stdout(struct btr_node *producer); +void ie9_print_status_bar(char *buf, unsigned len); void i9e_close(void); void i9e_signal_dispatch(int sig_num); __printf_2_3 void i9e_log(int ll, const char* fmt,...);