qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QOM: why "klass" used instead of "class" ?
@ 2012-02-29  5:52 Evgeny Voevodin
  2012-02-29  6:59 ` Michael Tokarev
  0 siblings, 1 reply; 8+ messages in thread
From: Evgeny Voevodin @ 2012-02-29  5:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Dmitry Solodkiy

include/qemu/object.h:

* Once all of the parent classes have been initialized, 
#TypeInfo::class_init
  * is called to let the class being instantiated provide default 
initialize for
  * it's virtual functions.  Here is how the above example might be modified
  * to introduce an overridden virtual function:
  *
  * <example>
  *   <title>Overriding a virtual function</title>
  *   <programlisting>
  * #include "qdev.h"
  *
  * void my_device_class_init(ObjectClass *klass, void *class_data)
  * {
  *     DeviceClass *dc = DEVICE_CLASS(klass);
  *     dc->reset = my_device_reset;
  * }
  *

Why to use "klass", not "class"?

-- 
Kind regards,
Evgeny Voevodin,
Leading Software Engineer,
ASWG, Moscow R&D center, Samsung Electronics
e-mail: e.voevodin@samsung.com

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

end of thread, other threads:[~2012-03-01  8:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29  5:52 [Qemu-devel] QOM: why "klass" used instead of "class" ? Evgeny Voevodin
2012-02-29  6:59 ` Michael Tokarev
2012-02-29  9:05   ` 陳韋任
2012-02-29  9:22     ` Evgeny Voevodin
2012-03-01  8:14     ` Andreas Färber
2012-03-01  8:17       ` malc
2012-03-01  8:28         ` Andreas Färber
2012-03-01  8:29           ` malc

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).