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