X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=219cf2d8c1078a0e04e0ce00dd89420dd44264f4;hp=f1100df49e144b873779ca84d226c1829cb1c1a3;hb=534a94f441767947874cb15d18211edf758e9277;hpb=21c6e0b09b42e61e72b741bd726856ab0bcd1d64 diff --git a/client.c b/client.c index f1100df4..219cf2d8 100644 --- a/client.c +++ b/client.c @@ -36,8 +36,7 @@ __printf_2_3 void (*para_log)(int, const char*, ...) = stderr_log; #ifdef HAVE_READLINE #include "interactive.h" -#include "server.completion.h" -#include "afs.completion.h" +#include "server_cmd.lsg.h" struct exec_task { struct task *task; @@ -459,9 +458,12 @@ static int client_i9e_line_handler(char *line) return 1; } +I9E_DUMMY_COMPLETER(SUPERCOMMAND_UNAVAILABLE); static struct i9e_completer completers[] = { - SERVER_COMPLETERS - AFS_COMPLETERS +#define LSG_SERVER_CMD_CMD(_name) {.name = #_name, \ + .completer = _name ## _completer} + LSG_SERVER_CMD_COMMANDS +#undef LSG_SERVER_CMD_CMD {.name = NULL} };