1 #ifndef _VA_DISPLAY_WITH_CLEANUP
2 #define _VA_DISPLAY_WITH_CLEANUP 1
9 struct VADisplayWithCleanup {
10 ~VADisplayWithCleanup();
13 Display *x11_display = nullptr;
14 bool can_use_zerocopy = true;
17 std::unique_ptr<VADisplayWithCleanup> va_open_display(const std::string &va_display); // Can return nullptr on failure.
19 #endif // !defined(_VA_DISPLAY_WITH_CLEANUP)