screenshotting a remote display under X is slow, make sure the user knows
[imager-screenshot.git] / Screenshot.xs
index 41f691d..6d56685 100644 (file)
@@ -1,32 +1,43 @@
-#include "EXTERN.h"\r
-#include "perl.h"\r
-#include "XSUB.h"\r
-#include "imext.h"\r
-#include "imperl.h"\r
-#include "imss.h"\r
-\r
-DEFINE_IMAGER_CALLBACKS;\r
-\r
-MODULE = Imager::Screenshot  PACKAGE = Imager::Screenshot PREFIX = imss_\r
-\r
-PROTOTYPES: DISABLE\r
-\r
-#ifdef SS_WIN32\r
-\r
-Imager\r
-imss_win32(hwnd, include_decor = 1)\r
-       unsigned hwnd\r
-       int include_decor\r
-\r
-#endif\r
-\r
-#ifdef SS_X11\r
-\r
-Imager\r
-imss_x11(window_id)\r
-       int window_id\r
-\r
-#endif\r
-\r
-BOOT:\r
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+#include "imext.h"
+#include "imperl.h"
+#include "imss.h"
+
+DEFINE_IMAGER_CALLBACKS;
+
+#define imss__x11_open imss_x11_open
+
+MODULE = Imager::Screenshot  PACKAGE = Imager::Screenshot PREFIX = imss
+
+PROTOTYPES: DISABLE
+
+#ifdef SS_WIN32
+
+Imager
+imss_win32(hwnd, include_decor = 0)
+       unsigned hwnd
+       int include_decor
+
+#endif
+
+#ifdef SS_X11
+
+Imager
+imss_x11(display, window_id)
+        unsigned long display
+       int window_id
+
+unsigned long
+imss_x11_open(display_name = NULL)
+        const char *display_name
+
+void
+imss_x11_close(display)
+        unsigned long display
+
+#endif
+
+BOOT:
        PERL_INITIALIZE_IMAGER_CALLBACKS;
\ No newline at end of file