Skip to content
Snippets Groups Projects

vlc_objects: simplify VLC_OBJECT cast handling

Merged Alexandre Janniaux requested to merge alexandre-janniaux/vlc:object-cast/1 into master

Like done by _Generic in the C version, use overloading functions to define the correct casting behaviour depending on whether the pointer is already a vlc_object_t or possess a vlc_object_t as ->obj.

This removes the need for listing all the objects which need a casting case, and non-vlc_object_t objects will fail at compile time.

Edited by Alexandre Janniaux

Merge request reports

Merge request pipeline #188638 passed

Merge request pipeline passed for 3a526cb3

Approved by
Ready to merge by members who can write to the target branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading