1 // Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_FRAMEBUFFER_HPP
5 #define INC_FRAMEBUFFER_HPP
10 #include "auto_proc.hpp"
11 #include "temp_file.hpp"
13 // Run Xvfb with a frame buffer of the given dimensions.
17 FrameBuffer(int width, int height, int depth);
18 std::string get_x_authority() const;
19 std::string get_x_display() const;
23 std::auto_ptr<temp_file> auth_file_;
24 auto_kill_proc server_proc_;
27 #endif // !INC_FRAMEBUFFER_HPP