Revision 6e1db57b console.c
b/console.c | ||
---|---|---|
1514 | 1514 |
chr->init(chr); |
1515 | 1515 |
} |
1516 | 1516 |
|
1517 |
CharDriverState *text_console_init(QemuOpts *opts)
|
|
1517 |
int text_console_init(QemuOpts *opts, CharDriverState **_chr)
|
|
1518 | 1518 |
{ |
1519 | 1519 |
CharDriverState *chr; |
1520 | 1520 |
TextConsole *s; |
... | ... | |
1546 | 1546 |
|
1547 | 1547 |
if (!s) { |
1548 | 1548 |
free(chr); |
1549 |
return NULL;
|
|
1549 |
return -EBUSY;
|
|
1550 | 1550 |
} |
1551 | 1551 |
|
1552 | 1552 |
s->chr = chr; |
... | ... | |
1554 | 1554 |
s->g_height = height; |
1555 | 1555 |
chr->opaque = s; |
1556 | 1556 |
chr->chr_set_echo = text_console_set_echo; |
1557 |
return chr; |
|
1557 |
|
|
1558 |
*_chr = chr; |
|
1559 |
return 0; |
|
1558 | 1560 |
} |
1559 | 1561 |
|
1560 | 1562 |
void text_consoles_set_display(DisplayState *ds) |
Also available in: Unified diff