mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Rename virRunConsole to vshRunConsole
This commit is contained in:
parent
b00f4ceb2b
commit
9c9e9b79c8
@ -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>
|
Fri Jan 26 07:59:52 EST 2007 Daniel Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/virshtest.c: Fixed up for new way test driver enumerates
|
* 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;
|
got_signal = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int virRunConsole(const char *tty) {
|
int vshRunConsole(const char *tty) {
|
||||||
int ttyfd, ret = -1;
|
int ttyfd, ret = -1;
|
||||||
struct termios ttyattr, rawattr;
|
struct termios ttyattr, rawattr;
|
||||||
void (*old_sigquit)(int);
|
void (*old_sigquit)(int);
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int virRunConsole(const char *tty);
|
int vshRunConsole(const char *tty);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -359,7 +359,7 @@ cmdConsole(vshControl * ctl, vshCmd * cmd)
|
|||||||
obj = xmlXPathEval(BAD_CAST "string(/domain/devices/console/@tty)", ctxt);
|
obj = xmlXPathEval(BAD_CAST "string(/domain/devices/console/@tty)", ctxt);
|
||||||
if ((obj != NULL) && ((obj->type == XPATH_STRING) &&
|
if ((obj != NULL) && ((obj->type == XPATH_STRING) &&
|
||||||
(obj->stringval != NULL) && (obj->stringval[0] != 0))) {
|
(obj->stringval != NULL) && (obj->stringval[0] != 0))) {
|
||||||
if (virRunConsole((const char *)obj->stringval) == 0)
|
if (vshRunConsole((const char *)obj->stringval) == 0)
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
} else {
|
} else {
|
||||||
vshPrintExtra(ctl, _("No console available for domain\n"));
|
vshPrintExtra(ctl, _("No console available for domain\n"));
|
||||||
|
Loading…
Reference in New Issue
Block a user