~ubuntu-branches/ubuntu/precise/geis/precise-proposed

« back to all changes in this revision

Viewing changes to testsuite/x11_mocks/x11_mocks.h

  • Committer: Package Import Robot
  • Author(s): Francis Ginther
  • Date: 2012-08-27 14:22:00 UTC
  • Revision ID: package-import@ubuntu.com-20120827142200-hlheka8njrto9pzq
Tags: upstream-2.2.9.1
ImportĀ upstreamĀ versionĀ 2.2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef X11_MOCKS_H
 
2
#define X11_MOCKS_H
 
3
 
 
4
#include <X11/Xlib.h>
 
5
#include <X11/extensions/XInput2.h>
 
6
#include <X11/extensions/sync.h>
 
7
#include <stdint.h>
 
8
 
 
9
#ifdef __cplusplus
 
10
extern "C" {
 
11
#endif
 
12
 
 
13
extern int xmock_xi2_opcode;
 
14
extern int xmock_xi2_event_base;
 
15
extern int xmock_xi2_error_base;
 
16
extern int xmock_xsync_event_base;
 
17
extern int xmock_xsync_error_base;
 
18
extern Display *xmock_display;
 
19
extern uint64_t xmock_server_time;
 
20
 
 
21
/* to be filled by user. A copy of it will be returned by each
 
22
   XIQueryDevice call  */
 
23
extern XIDeviceInfo *xmock_devices;
 
24
extern int xmock_devices_count;
 
25
 
 
26
/* Adds the given XEvent to the xmock event queue.
 
27
   The Diplay connection will signal that there are
 
28
   pending events */
 
29
extern void xmock_add_to_event_queue(const XEvent* event);
 
30
 
 
31
#ifdef __cplusplus
 
32
}
 
33
#endif
 
34
 
 
35
#endif