qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] crypto/tlscreds: QOM style cleanups
@ 2025-02-10 16:21 Philippe Mathieu-Daudé
  2025-02-10 16:21 ` [PATCH 1/6] crypto/tlscredsx509: Rename 'creds' -> 'x509_creds' Philippe Mathieu-Daudé
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-02-10 16:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P. Berrangé, Philippe Mathieu-Daudé

Style cleanup to avoid spreading bad examples:

Prefer accessing parent via QOM cast macro,
avoid using internal 'parent_obj' field.

Philippe Mathieu-Daudé (6):
  crypto/tlscredsx509: Rename 'creds' -> 'x509_creds'
  crypto/tlscredsx509: Access QOM parent via QCRYPTO_TLS_CREDS() macro
  crypto/tlscredspsk: Rename 'creds' -> 'psk_creds'
  crypto/tlscredspsk: Access QOM parent via QCRYPTO_TLS_CREDS() macro
  crypto/tlscredsanon: Rename 'creds' -> 'anon_creds'
  crypto/tlscredsanon: Access QOM parent via QCRYPTO_TLS_CREDS() macro

 crypto/tlscredsanon.c | 47 ++++++++++++++-------------
 crypto/tlscredspsk.c  | 61 ++++++++++++++++++-----------------
 crypto/tlscredsx509.c | 75 ++++++++++++++++++++++---------------------
 3 files changed, 96 insertions(+), 87 deletions(-)

-- 
2.47.1



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

end of thread, other threads:[~2025-02-10 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 16:21 [PATCH 0/6] crypto/tlscreds: QOM style cleanups Philippe Mathieu-Daudé
2025-02-10 16:21 ` [PATCH 1/6] crypto/tlscredsx509: Rename 'creds' -> 'x509_creds' Philippe Mathieu-Daudé
2025-02-10 16:32   ` Daniel P. Berrangé
2025-02-10 16:21 ` [PATCH 2/6] crypto/tlscredsx509: Access QOM parent via QCRYPTO_TLS_CREDS() macro Philippe Mathieu-Daudé
2025-02-10 16:21 ` [PATCH 3/6] crypto/tlscredspsk: Rename 'creds' -> 'psk_creds' Philippe Mathieu-Daudé
2025-02-10 16:21 ` [PATCH 4/6] crypto/tlscredspsk: Access QOM parent via QCRYPTO_TLS_CREDS() macro Philippe Mathieu-Daudé
2025-02-10 16:21 ` [PATCH 5/6] crypto/tlscredsanon: Rename 'creds' -> 'anon_creds' Philippe Mathieu-Daudé
2025-02-10 16:21 ` [PATCH 6/6] crypto/tlscredsanon: Access QOM parent via QCRYPTO_TLS_CREDS() macro Philippe Mathieu-Daudé

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