perf ui browser: Return the current color when setting a new one
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 2 Apr 2012 15:48:56 +0000 (12:48 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 7 Apr 2012 19:08:42 +0000 (16:08 -0300)
commit087091652bf8b351432a3f3fb50996ee3582d5e4
tree2cfbff9c5f1262a5597a9250b108545e4e9663c0
parent31d68e7b66f168e623902e194af1e52b8cf75d71
perf ui browser: Return the current color when setting a new one

Tools that want to change parts of the line to a different color and
then restore the previous one will use this, starting with the annotate
browser that will change the color of addresses if not on the current
entry, i.e. the selected one.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-uiajpevhxo4mzrvna6remb4a@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browser.c
tools/perf/util/ui/browser.h