X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ftools%2Fsysdb%2Finput.h;h=40bd7c0c6d869129b0435febc10271a071e1a9de;hp=80f1bb5aeb669b6085c0b33c5c3daf65df6426f1;hb=78fe39914ac0b2faa559a42eff7e9662085c335d;hpb=d85780ce9c65b6a38d7149c71e93e91d904f66a2 diff --git a/src/tools/sysdb/input.h b/src/tools/sysdb/input.h index 80f1bb5..40bd7c0 100644 --- a/src/tools/sysdb/input.h +++ b/src/tools/sysdb/input.h @@ -56,6 +56,18 @@ extern sdb_input_t *sysdb_input; int sdb_input_init(sdb_input_t *input); +/* + * sdb_input_mainloop: + * Wait for and handle all user and server input until end-of-file is read + * from the user (on the standard input channel). + * + * Returns: + * - 0 on success + * - a negative value else + */ +int +sdb_input_mainloop(void); + /* * sdb_input_readline: * This function is supposed to be used with a flex scanner's YY_INPUT. It