vncserver.hh (9848:a733a8eb6363) vncserver.hh (10839:10cac0f0f419)
1/*
1/*
2 * Copyright (c) 2010 ARM Limited
2 * Copyright (c) 2010, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 31 unchanged lines hidden (view full) ---

42 * Declaration of a VNC server
43 */
44
45#ifndef __BASE_VNC_VNC_SERVER_HH__
46#define __BASE_VNC_VNC_SERVER_HH__
47
48#include <iostream>
49
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 31 unchanged lines hidden (view full) ---

42 * Declaration of a VNC server
43 */
44
45#ifndef __BASE_VNC_VNC_SERVER_HH__
46#define __BASE_VNC_VNC_SERVER_HH__
47
48#include <iostream>
49
50#include "base/vnc/convert.hh"
51#include "base/vnc/vncinput.hh"
52#include "base/bitmap.hh"
53#include "base/circlebuf.hh"
54#include "base/pollevent.hh"
55#include "base/socket.hh"
56#include "params/VncServer.hh"
57#include "sim/sim_object.hh"
58

--- 241 unchanged lines hidden (view full) ---

300 */
301 void recvCutText();
302
303 /** Tell the client that the frame buffer resized. This happens when the
304 * simulated system changes video modes (E.g. X11 starts).
305 */
306 void sendFrameBufferResized();
307
50#include "base/vnc/vncinput.hh"
51#include "base/bitmap.hh"
52#include "base/circlebuf.hh"
53#include "base/pollevent.hh"
54#include "base/socket.hh"
55#include "params/VncServer.hh"
56#include "sim/sim_object.hh"
57

--- 241 unchanged lines hidden (view full) ---

299 */
300 void recvCutText();
301
302 /** Tell the client that the frame buffer resized. This happens when the
303 * simulated system changes video modes (E.g. X11 starts).
304 */
305 void sendFrameBufferResized();
306
308 public:
309 /** The frame buffer uses this call to notify the vnc server that
310 * the frame buffer has been updated and a new image needs to be sent to the
311 * client
312 */
313 void
314 setDirty()
315 {
316 VncInput::setDirty();
317 sendUpdate = true;
318 sendFrameBufferUpdate();
319 }
307 static const PixelConverter pixelConverter;
320
308
321 /** Set the mode of the data the frame buffer will be sending us
322 * @param mode the mode
323 */
324 void setFrameBufferParams(VideoConvert::Mode mode, uint16_t width,
325 uint16_t height);
309 public:
310 void setDirty() M5_ATTR_OVERRIDE;
311 void frameBufferResized() M5_ATTR_OVERRIDE;
326};
327
328#endif
312};
313
314#endif