eac1afdded9806561476a1aa3614a7ac816cb8f0
[imager-screenshot.git] / Screenshot.xs
1 #include "EXTERN.h"\r
2 #include "perl.h"\r
3 #include "XSUB.h"\r
4 #include "imext.h"\r
5 #include "imperl.h"\r
6 #include "imss.h"\r
7 \r
8 DEFINE_IMAGER_CALLBACKS;\r
9 \r
10 #define imss__x11_open imss_x11_open\r
11 \r
12 MODULE = Imager::Screenshot  PACKAGE = Imager::Screenshot PREFIX = imss\r
13 \r
14 PROTOTYPES: DISABLE\r
15 \r
16 #ifdef SS_WIN32\r
17 \r
18 Imager\r
19 imss_win32(hwnd, include_decor = 0)\r
20         unsigned hwnd\r
21         int include_decor\r
22 \r
23 #endif\r
24 \r
25 #ifdef SS_X11\r
26 \r
27 Imager\r
28 imss_x11(display, window_id)\r
29         unsigned long display\r
30         int window_id\r
31 \r
32 unsigned long\r
33 imss_x11_open(display_name = NULL)\r
34         const char *display_name\r
35 \r
36 void\r
37 imss_x11_close(display)\r
38         unsigned long display\r
39 \r
40 #endif\r
41 \r
42 BOOT:\r
43         PERL_INITIALIZE_IMAGER_CALLBACKS;