X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ftools%2Fsysdb%2Fcommand.h;h=b2e5fa7ccc7363ea6efd51a091c06fb1c3caaac7;hp=febf64f144a3c6f54ecee86d077531d14b414f76;hb=eeecbb1672352c4dc15af2ca345f2bb5cc5a5f66;hpb=72a63cfb0e65bb575889b8dbee6648cafd6a52f2 diff --git a/src/tools/sysdb/command.h b/src/tools/sysdb/command.h index febf64f..b2e5fa7 100644 --- a/src/tools/sysdb/command.h +++ b/src/tools/sysdb/command.h @@ -36,10 +36,11 @@ * * Returns: * - 0 on success - * - a negative value else + * - a negative value if no reply could be read from the server + * - a positive value if the server returned an error */ int -sdb_command_print_reply(sdb_client_t *client); +sdb_command_print_reply(sdb_input_t *input); /* * sdb_command_exec: @@ -57,6 +58,13 @@ sdb_command_print_reply(sdb_client_t *client); char * sdb_command_exec(sdb_input_t *input); +/* + * sdb_command_print_server_version: + * Query and print the server version. + */ +void +sdb_command_print_server_version(sdb_input_t *input); + #endif /* SYSDB_COMMAND_H */ /* vim: set tw=78 sw=4 ts=4 noexpandtab : */