qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Missing mon in monitor_cur_is_qmp() and qerror_report()
@ 2010-05-07 21:55 Jan Kiszka
  2010-05-10  9:40 ` Markus Armbruster
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2010-05-07 21:55 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

Luiz,

I missed this when the API was first proposed:

cur_mon is scheduled for removal (one day...). It's just an intermediate
step to convert all users to explicit 'mon' passing. Thus, new APIs
should not rely it.

I just realized that monitor_cur_is_qmp() does so. It should be
refactored to monitor_is_qmp(Monitor *mon). And qerror should be enhance
by a 'mon' argument as well. Callers that aren't passed a 'mon'
themselves should either be fixed at this chance or could fall back to
cur_mon for the time being.

So far for the theory - do you see any pitfalls in the existing usage?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-10 13:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 21:55 [Qemu-devel] Missing mon in monitor_cur_is_qmp() and qerror_report() Jan Kiszka
2010-05-10  9:40 ` Markus Armbruster
2010-05-10 10:12   ` Jan Kiszka
2010-05-10 11:14     ` Markus Armbruster
2010-05-10 12:23       ` Jan Kiszka
2010-05-10 13:11         ` Luiz Capitulino
2010-05-10 13:16         ` Markus Armbruster
2010-05-10 13:26           ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).