Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
903396ad
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
903396ad
编写于
8月 15, 2011
作者:
A
Anthony Liguori
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
char: remove qemu_chr_send_event()
It's dead code. Signed-off-by:
N
Anthony Liguori
<
aliguori@us.ibm.com
>
上级
74c0d6f0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
39 deletion
+0
-39
console.c
console.c
+0
-16
hw/baum.c
hw/baum.c
+0
-15
qemu-char.c
qemu-char.c
+0
-6
qemu-char.h
qemu-char.h
+0
-2
未找到文件。
console.c
浏览文件 @
903396ad
...
...
@@ -1102,21 +1102,6 @@ static int console_puts(CharDriverState *chr, const uint8_t *buf, int len)
return
len
;
}
static
void
console_send_event
(
CharDriverState
*
chr
,
int
event
)
{
TextConsole
*
s
=
chr
->
opaque
;
int
i
;
if
(
event
==
CHR_EVENT_FOCUS
)
{
for
(
i
=
0
;
i
<
nb_consoles
;
i
++
)
{
if
(
consoles
[
i
]
==
s
)
{
console_select
(
i
);
break
;
}
}
}
}
static
void
kbd_send_chars
(
void
*
opaque
)
{
TextConsole
*
s
=
opaque
;
...
...
@@ -1462,7 +1447,6 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds)
s
=
chr
->
opaque
;
chr
->
chr_write
=
console_puts
;
chr
->
chr_send_event
=
console_send_event
;
s
->
out_fifo
.
buf
=
s
->
out_fifo_buf
;
s
->
out_fifo
.
buf_size
=
sizeof
(
s
->
out_fifo_buf
);
...
...
hw/baum.c
浏览文件 @
903396ad
...
...
@@ -468,20 +468,6 @@ static int baum_write(CharDriverState *chr, const uint8_t *buf, int len)
return
orig_len
;
}
/* The other end sent us some event */
static
void
baum_send_event
(
CharDriverState
*
chr
,
int
event
)
{
BaumDriverState
*
baum
=
chr
->
opaque
;
switch
(
event
)
{
case
CHR_EVENT_BREAK
:
break
;
case
CHR_EVENT_OPENED
:
/* Reset state */
baum
->
in_buf_used
=
0
;
break
;
}
}
/* Send the key code to the other end */
static
void
baum_send_key
(
BaumDriverState
*
baum
,
uint8_t
type
,
uint8_t
value
)
{
uint8_t
packet
[]
=
{
type
,
value
};
...
...
@@ -591,7 +577,6 @@ int chr_baum_init(QemuOpts *opts, CharDriverState **_chr)
chr
->
opaque
=
baum
;
chr
->
chr_write
=
baum_write
;
chr
->
chr_send_event
=
baum_send_event
;
chr
->
chr_accept_input
=
baum_accept_input
;
chr
->
chr_close
=
baum_close
;
...
...
qemu-char.c
浏览文件 @
903396ad
...
...
@@ -189,12 +189,6 @@ void qemu_chr_fe_printf(CharDriverState *s, const char *fmt, ...)
va_end
(
ap
);
}
void
qemu_chr_send_event
(
CharDriverState
*
s
,
int
event
)
{
if
(
s
->
chr_send_event
)
s
->
chr_send_event
(
s
,
event
);
}
void
qemu_chr_add_handlers
(
CharDriverState
*
s
,
IOCanReadHandler
*
fd_can_read
,
IOReadHandler
*
fd_read
,
...
...
qemu-char.h
浏览文件 @
903396ad
...
...
@@ -62,7 +62,6 @@ struct CharDriverState {
IOCanReadHandler
*
chr_can_read
;
IOReadHandler
*
chr_read
;
void
*
handler_opaque
;
void
(
*
chr_send_event
)(
struct
CharDriverState
*
chr
,
int
event
);
void
(
*
chr_close
)(
struct
CharDriverState
*
chr
);
void
(
*
chr_accept_input
)(
struct
CharDriverState
*
chr
);
void
(
*
chr_set_echo
)(
struct
CharDriverState
*
chr
,
bool
echo
);
...
...
@@ -88,7 +87,6 @@ void qemu_chr_delete(CharDriverState *chr);
void
qemu_chr_fe_printf
(
CharDriverState
*
s
,
const
char
*
fmt
,
...)
GCC_FMT_ATTR
(
2
,
3
);
int
qemu_chr_fe_write
(
CharDriverState
*
s
,
const
uint8_t
*
buf
,
int
len
);
void
qemu_chr_send_event
(
CharDriverState
*
s
,
int
event
);
void
qemu_chr_add_handlers
(
CharDriverState
*
s
,
IOCanReadHandler
*
fd_can_read
,
IOReadHandler
*
fd_read
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录