X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=219cf2d8c1078a0e04e0ce00dd89420dd44264f4;hp=64b1553745a53fc7a73db8901ea33a2c661204f2;hb=ce9e297eb91a932a11f81890c800d0380b5bc9c9;hpb=a80869e84654120689bd63b4a0f944bd1124332e diff --git a/client.c b/client.c index 64b15537..219cf2d8 100644 --- a/client.c +++ b/client.c @@ -22,7 +22,8 @@ #include "error.h" #include "version.h" -INIT_CLIENT_ERRLISTS; +/** Array of error strings. */ +DEFINE_PARA_ERRLIST; static struct sched sched; static struct client_task *ct; @@ -35,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; @@ -458,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} };