Skip to content
Snippets Groups Projects
Commit 6208d519 authored by Romain Vimont's avatar Romain Vimont Committed by Jean-Baptiste Kempf
Browse files

vout: use designated initializers for display ops

Benefits of *not* using designated initializers:
 - we can't forget a callback
 - it's the same in C and C++ (<20)

Benefits of using designated initializers:
 - the order of callbacks may not be wrong
 - we can read immediately which function is assigned to which callback
   (especially if some are NULL)
 - an optional callback may be added without modifying all the modules
 - we can grep a callback name to find its assignments easily
 - it is consistent with others xxx_operations in the codebase
parent e5d44f6a
No related branches found
No related tags found
Loading
Pipeline #115795 passed with stage
in 12 minutes and 26 seconds
Showing
with 85 additions and 21 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment