提交 9c9e9b79 编写于 作者: D Daniel P. Berrange

Rename virRunConsole to vshRunConsole

上级 b00f4ceb
Sun Jan 28 14:44:23 EST 2007 Daniel Berrange <berrange@redhat.com>
* sc/console.c, src/console.h, src/virsh.c: Rename the
virRunConsole method to vshRunConsole to avoid it getting
picked up in auto-generated python bindings
Fri Jan 26 07:59:52 EST 2007 Daniel Berrange <berrange@redhat.com>
* src/virshtest.c: Fixed up for new way test driver enumerates
......
......@@ -42,7 +42,7 @@ static void do_signal(int sig ATTRIBUTE_UNUSED) {
got_signal = 1;
}
int virRunConsole(const char *tty) {
int vshRunConsole(const char *tty) {
int ttyfd, ret = -1;
struct termios ttyattr, rawattr;
void (*old_sigquit)(int);
......
......@@ -27,7 +27,7 @@
extern "C" {
#endif
int virRunConsole(const char *tty);
int vshRunConsole(const char *tty);
#ifdef __cplusplus
}
......
......@@ -359,7 +359,7 @@ cmdConsole(vshControl * ctl, vshCmd * cmd)
obj = xmlXPathEval(BAD_CAST "string(/domain/devices/console/@tty)", ctxt);
if ((obj != NULL) && ((obj->type == XPATH_STRING) &&
(obj->stringval != NULL) && (obj->stringval[0] != 0))) {
if (virRunConsole((const char *)obj->stringval) == 0)
if (vshRunConsole((const char *)obj->stringval) == 0)
ret = TRUE;
} else {
vshPrintExtra(ctl, _("No console available for domain\n"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册