X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ref_counted_frame.h;h=881d0d5015c8f5f0738982ba9096eb797edc6b99;hb=c015407a3953235df07a601baa6aa8e02ba7b561;hp=6d66a769f59044079055cf5c7d0484e200ef2e2c;hpb=5bc2d4de98e960f40a11cd2991a25ea7d1d5a143;p=nageru diff --git a/ref_counted_frame.h b/ref_counted_frame.h index 6d66a76..881d0d5 100644 --- a/ref_counted_frame.h +++ b/ref_counted_frame.h @@ -7,18 +7,20 @@ // Note that the important point isn't really the pointer to the Frame itself, // it's the resources it's representing that need to go back to the allocator. +#include + #include "bmusb/bmusb.h" -void release_refcounted_frame(FrameAllocator::Frame *frame); +void release_refcounted_frame(bmusb::FrameAllocator::Frame *frame); -typedef std::shared_ptr RefCountedFrameBase; +typedef std::shared_ptr RefCountedFrameBase; class RefCountedFrame : public RefCountedFrameBase { public: RefCountedFrame() {} - RefCountedFrame(const FrameAllocator::Frame &frame) - : RefCountedFrameBase(new FrameAllocator::Frame(frame), release_refcounted_frame) {} + RefCountedFrame(const bmusb::FrameAllocator::Frame &frame) + : RefCountedFrameBase(new bmusb::FrameAllocator::Frame(frame), release_refcounted_frame) {} }; #endif // !defined(_REF_COUNTED_FRAME_H)