#ifdef DMX
#include <X11/extensions/dmxext.h>
#endif
+#ifdef XPRINT
#include <X11/extensions/Print.h>
+#endif
#include <X11/Xos.h>
#include <stdio.h>
#include <stdlib.h>
printf ("\n");
printf ("screen #%d:\n", scr);
+#ifdef XPRINT
/* Check whether this is a screen of a print DDX */
if (hasExtension(dpy, XP_PRINTNAME)) {
Screen **pscreens;
XFree(pscreens);
}
printf (" print screen: %s\n", isPrintScreen?"yes":"no");
+#endif
if (isPrintScreen) {
/* Print resolution is set on a per-printer basis (per-document
#endif /* DMX */
+#ifdef XPRINT
static
void print_xprint_attrpool(const char *name, const char *attrpool)
{
static int
print_xprint_info(Display *dpy, char *extname)
{
+
short majorrev,
minorrev;
int xp_event_base,
}
XpFreePrinterList(printerlist);
-
+
return 1;
}
+#endif
/* utilities to manage the list of recognized extensions */
#ifdef DMX
{"DMX", print_dmx_info, False},
#endif
+#ifdef XPRINT
{XP_PRINTNAME, print_xprint_info, False},
+#endif
/* add new extensions here */
};