Rename virRunConsole to vshRunConsole

This commit is contained in:
Daniel P. Berrange 2007-01-28 19:47:36 +00:00
parent b00f4ceb2b
commit 9c9e9b79c8
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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);

View File

@ -27,7 +27,7 @@
extern "C" {
#endif
int virRunConsole(const char *tty);
int vshRunConsole(const char *tty);
#ifdef __cplusplus
}

View File

@ -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"));