qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Question] What is the definition of “private” fields in QOM?
@ 2024-10-19 16:10 Zhao Liu
  2024-10-21  8:35 ` Daniel P. Berrangé
  2024-10-21  9:25 ` Peter Maydell
  0 siblings, 2 replies; 15+ messages in thread
From: Zhao Liu @ 2024-10-19 16:10 UTC (permalink / raw)
  To: Paolo Bonzini, Daniel P. Berrange, Eduardo Habkost, qemu-devel; +Cc: Zhao Liu

Hi maintainers and list,

In the QOM structure, the class and object structs have two members:
parent_class and parent_obj, which are often marked as "< private >" in
the comment.

I couldn’t find information on why to define ‘private’ and ‘public’,
even in the earliest QOM commits and the patch emails I could find.

Does ‘private’ refer to the internal implementation code of QOM, or does
it refer to the specific code that defines and implements this object
and its class?

I understand the original idea of private field indicates it cannot be
accessed directly out of the "private" scope.

Regards,
Zhao



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

end of thread, other threads:[~2024-10-22 14:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-19 16:10 [Question] What is the definition of “private” fields in QOM? Zhao Liu
2024-10-21  8:35 ` Daniel P. Berrangé
2024-10-21  9:22   ` Zhao Liu
2024-10-21  9:25 ` Peter Maydell
2024-10-21 14:22   ` Zhao Liu
2024-10-21 14:20     ` Peter Maydell
2024-10-21 15:18       ` Zhao Liu
2024-10-21 15:06         ` Peter Maydell
2024-10-21 15:41           ` Zhao Liu
2024-10-21 16:47             ` Peter Maydell
2024-10-22  3:08               ` Junjie Mao
2024-10-22  8:42                 ` Peter Maydell
2024-10-22 15:09                   ` Zhao Liu
2024-10-22 15:01               ` Zhao Liu
2024-10-21 18:46   ` BALATON Zoltan

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