~ubuntu-branches/ubuntu/vivid/qemu/vivid

« back to all changes in this revision

Viewing changes to include/ui/console.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-02-25 22:31:43 UTC
  • mfrom: (1.8.5)
  • Revision ID: package-import@ubuntu.com-20140225223143-odhqxfc60wxrjl15
Tags: 2.0.0~rc1+dfsg-0ubuntu1
* Merge 2.0.0-rc1
* debian/rules: consolidate ppc filter entries.
* Move qemu-system-arch64 into qemu-system-arm
* debian/patches/define-trusty-machine-type.patch: define a trusty machine
  type, currently the same as pc-i440fx-2.0, to put is in a better position
  to enable live migrations from trusty onward.  (LP: #1294823)
* debian/control: build-dep on libfdt >= 1.4.0  (LP: #1295072)
* Merge latest upstream git to commit dc9528f
* Debian/rules:
  - remove -enable-uname-release=2.6.32
  - don't make the aarch64 target Ubuntu-specific.
* Remove patches which are now upstream:
  - fix-smb-security-share.patch
  - slirp-smb-redirect-port-445-too.patch 
  - linux-user-Implement-sendmmsg-syscall.patch (better version is upstream)
  - signal-added-a-wrapper-for-sigprocmask-function.patch
  - ubuntu/signal-sigsegv-protection-on-do_sigprocmask.patch
  - ubuntu/Don-t-block-SIGSEGV-at-more-places.patch
  - ubuntu/ppc-force-cpu-threads-count-to-be-power-of-2.patch
* add link for /usr/share/qemu/bios-256k.bin
* Remove all linaro patches.
* Remove all arm64/ patches.  Many but not all are upstream.
* Remove CVE-2013-4377.patch which is upstream.
* debian/control-in: don't make qemu-system-aarch64 ubuntu-specific

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include "qapi/qmp/qdict.h"
7
7
#include "qemu/notify.h"
8
8
#include "monitor/monitor.h"
9
 
#include "trace.h"
10
9
#include "qapi-types.h"
11
10
#include "qapi/error.h"
12
11
 
15
14
#define MOUSE_EVENT_LBUTTON 0x01
16
15
#define MOUSE_EVENT_RBUTTON 0x02
17
16
#define MOUSE_EVENT_MBUTTON 0x04
 
17
#define MOUSE_EVENT_WHEELUP 0x08
 
18
#define MOUSE_EVENT_WHEELDN 0x10
18
19
 
19
20
/* identical to the ps/2 keyboard bits */
20
21
#define QEMU_SCROLL_LOCK_LED (1 << 0)
45
46
QEMUPutLEDEntry *qemu_add_led_event_handler(QEMUPutLEDEvent *func, void *opaque);
46
47
void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry);
47
48
 
48
 
void kbd_put_keycode(int keycode);
49
49
void kbd_put_ledstate(int ledstate);
50
 
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state);
51
 
 
52
 
/* Does the current mouse generate absolute events */
53
 
int kbd_mouse_is_absolute(void);
54
 
void qemu_add_mouse_mode_change_notifier(Notifier *notify);
55
 
void qemu_remove_mouse_mode_change_notifier(Notifier *notify);
56
 
 
57
 
/* Of all the mice, is there one that generates absolute events */
58
 
int kbd_mouse_has_absolute(void);
59
50
 
60
51
struct MouseTransformInfo {
61
52
    /* Touchscreen resolution */
129
120
    struct PixelFormat pf;
130
121
};
131
122
 
 
123
typedef struct QemuUIInfo {
 
124
    /* geometry */
 
125
    int       xoff;
 
126
    int       yoff;
 
127
    uint32_t  width;
 
128
    uint32_t  height;
 
129
} QemuUIInfo;
 
130
 
132
131
/* cursor data format is 32bit RGBA */
133
132
typedef struct QEMUCursor {
134
133
    int                 width, height;
213
212
                                  uint64_t interval);
214
213
void unregister_displaychangelistener(DisplayChangeListener *dcl);
215
214
 
 
215
int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info);
 
216
 
216
217
void dpy_gfx_update(QemuConsole *con, int x, int y, int w, int h);
217
218
void dpy_gfx_replace_surface(QemuConsole *con,
218
219
                             DisplaySurface *surface);
275
276
    void (*gfx_update)(void *opaque);
276
277
    void (*text_update)(void *opaque, console_ch_t *text);
277
278
    void (*update_interval)(void *opaque, uint64_t interval);
 
279
    int (*ui_info)(void *opaque, uint32_t head, QemuUIInfo *info);
278
280
} GraphicHwOps;
279
281
 
280
 
QemuConsole *graphic_console_init(DeviceState *dev,
 
282
QemuConsole *graphic_console_init(DeviceState *dev, uint32_t head,
281
283
                                  const GraphicHwOps *ops,
282
284
                                  void *opaque);
283
285
 
286
288
void graphic_hw_text_update(QemuConsole *con, console_ch_t *chardata);
287
289
 
288
290
QemuConsole *qemu_console_lookup_by_index(unsigned int index);
289
 
QemuConsole *qemu_console_lookup_by_device(DeviceState *dev);
 
291
QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head);
290
292
bool qemu_console_is_visible(QemuConsole *con);
291
293
bool qemu_console_is_graphic(QemuConsole *con);
292
294
bool qemu_console_is_fixedsize(QemuConsole *con);
 
295
int qemu_console_get_index(QemuConsole *con);
 
296
uint32_t qemu_console_get_head(QemuConsole *con);
 
297
QemuUIInfo *qemu_console_get_ui_info(QemuConsole *con);
 
298
int qemu_console_get_width(QemuConsole *con, int fallback);
 
299
int qemu_console_get_height(QemuConsole *con, int fallback);
293
300
 
294
301
void text_consoles_set_display(DisplayState *ds);
295
302
void console_select(unsigned int index);
335
342
 
336
343
/* input.c */
337
344
int index_from_key(const char *key);
338
 
int index_from_keycode(int code);
339
345
 
340
346
/* gtk.c */
341
347
void early_gtk_display_init(void);
342
 
void gtk_display_init(DisplayState *ds, bool full_screen);
 
348
void gtk_display_init(DisplayState *ds, bool full_screen, bool grab_on_hover);
343
349
 
344
350
#endif