When building without readline, this function does nothing but
return false. Without touching any of its arguments which
triggers a build error. Therefore, provide a stub that has
arguments marked as unused.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
{.name = NULL}
};
+
+#ifdef WITH_READLINE
bool
cmdComplete(vshControl *ctl, const vshCmd *cmd)
{
bool ret = false;
-#ifdef WITH_READLINE
const vshClientHooks *hooks = ctl->hooks;
int stdin_fileno = STDIN_FILENO;
const char *arg = "";
cleanup:
virBufferFreeAndReset(&buf);
virStringListFree(matches);
-#endif /* WITH_READLINE */
return ret;
}
+
+
+#else /* !WITH_READLINE */
+
+
+bool
+cmdComplete(vshControl *ctl ATTRIBUTE_UNUSED,
+ const vshCmd *cmd ATTRIBUTE_UNUSED)
+{
+ return false;
+}
+#endif /* !WITH_READLINE */