]> Git Repo - qemu.git/commit - hw/core/qdev-properties-system.c
qdev: make get_pointer() handle temporary strings
authorIgor Mammedov <[email protected]>
Mon, 3 Mar 2014 10:30:06 +0000 (11:30 +0100)
committerStefan Hajnoczi <[email protected]>
Thu, 13 Mar 2014 13:42:24 +0000 (14:42 +0100)
commit7d1de46448d0d52183c397d76fbc86cb614ed21b
tree2f2becddb7cea4426ec6de58107e166008f78ffb
parentbe8d8537668c9be7a8dee6aed94b2b3f9fcd4a9f
qdev: make get_pointer() handle temporary strings

get_pointer()'s print() callback might return a heap allocated
string, to avoid adding dedicated get_pointer_foo for this case
convert current print() callbacks to return temporary heap
allocated string and make get_pointer() free it.

Reviewed-by: Andreas Färber <[email protected]>
Signed-off-by: Igor Mammedov <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/core/qdev-properties-system.c
This page took 0.023378 seconds and 4 git commands to generate.