Skip to content
Snippets Groups Projects

vlcrs-core: object: add Object::new()

Merged Alexandre Janniaux requested to merge alexandre-janniaux/vlc:object-rust/1 into master
All threads resolved!

This allows creating objects from existing objects (in a libvlc tree) or dummy objects (parent = None) for tests, and provide the Drop implementation to delete the objects when they go out of scope.

The implementation is specifically made to be too restrictive for now, which makes it unpractical to other use case than creating tests, since we cannot guarantee the correct usage of the object tree as it is otherwise.

Merge request reports

Loading
Loading

Activity

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