Line | |
---|
1 | #ifndef _XENFB_H_ |
---|
2 | #define _XENFB_H_ |
---|
3 | |
---|
4 | #include <stdbool.h> |
---|
5 | #include <sys/types.h> |
---|
6 | |
---|
7 | struct xenfb |
---|
8 | { |
---|
9 | void *pixels; |
---|
10 | |
---|
11 | int row_stride; |
---|
12 | int depth; |
---|
13 | int width; |
---|
14 | int height; |
---|
15 | int abs_pointer_wanted; |
---|
16 | |
---|
17 | void *user_data; |
---|
18 | |
---|
19 | void (*update)(struct xenfb *xenfb, int x, int y, int width, int height); |
---|
20 | }; |
---|
21 | |
---|
22 | struct xenfb *xenfb_new(void); |
---|
23 | void xenfb_delete(struct xenfb *xenfb); |
---|
24 | void xenfb_teardown(struct xenfb *xenfb); |
---|
25 | |
---|
26 | int xenfb_attach_dom(struct xenfb *xenfb, int domid); |
---|
27 | |
---|
28 | int xenfb_select_fds(struct xenfb *xenfb, fd_set *readfds); |
---|
29 | int xenfb_poll(struct xenfb *xenfb, fd_set *readfds); |
---|
30 | |
---|
31 | int xenfb_send_key(struct xenfb *xenfb, bool down, int keycode); |
---|
32 | int xenfb_send_motion(struct xenfb *xenfb, int rel_x, int rel_y); |
---|
33 | int xenfb_send_position(struct xenfb *xenfb, int abs_x, int abs_y); |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.