Revision 1f51470d console.c
b/console.c | ||
---|---|---|
1510 | 1510 |
chr->init(chr); |
1511 | 1511 |
} |
1512 | 1512 |
|
1513 |
int text_console_init(QemuOpts *opts, CharDriverState **_chr)
|
|
1513 |
CharDriverState *text_console_init(QemuOpts *opts)
|
|
1514 | 1514 |
{ |
1515 | 1515 |
CharDriverState *chr; |
1516 | 1516 |
TextConsole *s; |
... | ... | |
1542 | 1542 |
|
1543 | 1543 |
if (!s) { |
1544 | 1544 |
g_free(chr); |
1545 |
return -EBUSY;
|
|
1545 |
return NULL;
|
|
1546 | 1546 |
} |
1547 | 1547 |
|
1548 | 1548 |
s->chr = chr; |
... | ... | |
1550 | 1550 |
s->g_height = height; |
1551 | 1551 |
chr->opaque = s; |
1552 | 1552 |
chr->chr_set_echo = text_console_set_echo; |
1553 |
|
|
1554 |
*_chr = chr; |
|
1555 |
return 0; |
|
1553 |
return chr; |
|
1556 | 1554 |
} |
1557 | 1555 |
|
1558 | 1556 |
void text_consoles_set_display(DisplayState *ds) |
Also available in: Unified diff