X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=interactive.h;h=4253f79ccf3b511b4b901a3d2495f9ef0e1e715d;hb=e854df2fe2cfb3ae90a439828fc13cc0fc470aa9;hp=96401b16a3a89b68182464622e55b6e629b0bc82;hpb=a731a7c6e78fb137268b42062d9fb08b4e49a2c8;p=paraslash.git diff --git a/interactive.h b/interactive.h index 96401b16..4253f79c 100644 --- a/interactive.h +++ b/interactive.h @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2011-2014 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2011 Andre Noll , see file COPYING. */ /** \file interactive.h Public API for interactive sessions. */ @@ -33,7 +29,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;} @@ -84,12 +80,11 @@ 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_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,...); -int i9e_select(int n, fd_set *readfds, fd_set *writefds, - struct timeval *timeout_tv); +int i9e_select(int n, fd_set *readfds, fd_set *writefds, int timeout); int i9e_extract_completions(const char *word, char **string_list, char ***result); char **i9e_complete_commands(const char *word, struct i9e_completer *completers);