1. 22 Jun, 2020 1 commit
  2. 21 Feb, 2020 2 commits
  3. 17 Feb, 2020 1 commit
  4. 10 Apr, 2019 1 commit
  5. 23 Nov, 2018 1 commit
  6. 15 Nov, 2018 1 commit
    • Romain Vimont's avatar
      include: add C++ wrapper for C shared resources · 40c6d71f
      Romain Vimont authored and Thomas Guillem's avatar Thomas Guillem committed
      Add a helper to create RAII wrappers for C shared resources, which
      automatically call the Hold() and Release() functions associated to the
      raw pointer.
      
      Just declare a new shared resource wrapper type:
      
          using InputItemPtr = vlc_shared_data_ptr_type(input_item_t,
                                                        input_item_Hold,
                                                        input_item_Release);
      
      Then use this new type directly:
      
          input_item_t *ptr = /* ... */;
          InputItemPtr item(ptr);
          QString name = item->psz_name;
          InputItemPtr other = item; /* hold automatically */
      40c6d71f
  7. 21 Aug, 2018 1 commit
  8. 17 Jul, 2018 1 commit