extern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen);
-extern int XprintOptions(int argc, char **argv, int i);
+extern int PrinterOptions(int argc, char **argv, int i);
+
+extern void PrinterUseMsg(void);
+
+extern void PrinterInitGlobals(void);
extern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv);
* variables at an very early point of server startup (even before
* |ProcessCommandLine()|.
*/
-void XprintInitGlobals(void)
+void PrinterInitGlobals(void)
{
extern char dispatchExceptionAtReset; /* defined in Xserver/dix/dispatch.c */
xprintInitGlobalsCalled = TRUE;
+#ifdef DAMAGE
+ /* Disable DAMAGE extension for now as it does not work with
+ * the Postscript DDX yet (see
+ * https://bugs.freedesktop.org/show_bug.cgi?id=1660) ...
+ * (you can enable the DAMAGE extension explicitly via
+ * % X +extension DAMAGE ... #) ;-( */
+ {
+ extern Bool noDamageExtension;
+ noDamageExtension = TRUE;
+ }
+#endif /* DAMAGE */
+
#ifdef SMART_SCHEDULE
/* Somehow the XF86 "smart scheduler" completely kills the Xprint DDX
* (see http://xprint.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=467
}
/*
- * XprintUseMsg() prints usage for the Xprint-specific options
+ * PrinterUseMsg() prints usage for the Xprint-specific options
*/
-void XprintUseMsg()
+void PrinterUseMsg(void)
{
XpSpoolerTypePtr curr = xpstm;
}
/*
- * XprintOptions checks argv[i] to see if it is our command line
+ * PrinterOptions checks argv[i] to see if it is our command line
* option specifying a configuration file name. It returns the index
* of the next option to process.
*/
int
-XprintOptions(
+PrinterOptions(
int argc,
char **argv,
int i)
/* This should NEVER happen, but... */
if( !xprintInitGlobalsCalled )
{
- FatalError("Internal error: XprintInitGlobals() not called.");
+ FatalError("Internal error: PrinterInitGlobals() not called.");
}
#ifdef SMART_SCHEDULE
- /* |XprintInitGlobals| should have set |SmartScheduleDisable| to
+ /* |PrinterInitGlobals| should have set |SmartScheduleDisable| to
* |TRUE| - if not we will trigger this safeguard. */
if( SmartScheduleDisable != TRUE )
{
/* Safeguard for
* http://pdx.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=567 ("Xorg
* Xprt starts to consume 100% CPU when being idle for some time")
- * |XprintInitGlobals| should have set |defaultScreenSaverTime| to
+ * |PrinterInitGlobals| should have set |defaultScreenSaverTime| to
* |0| - if not we will trigger this trap. */
if( defaultScreenSaverTime != 0 )
{
pScreenInfo->numPixmapFormats = 0; /* get them in PrinterInitOutput */
screenInfo.numVideoScreens = 0;
-#ifdef PRINT_ONLY_SERVER
- PrinterInitOutput(pScreenInfo, argc, argv);
-#endif
}
static void
/* ddxInitGlobals - called by |InitGlobals| from os/util.c */
void ddxInitGlobals(void)
{
- XprintInitGlobals();
+ PrinterInitGlobals();
}
/****************************************
void ddxUseMsg(void)
{
-/* Enable |XprintUseMsg()| only if |XprintOptions()| is called
- * by |ddxProcessArgument|, too (see below...) */
-#ifdef PRINT_ONLY_SERVER
- XprintUseMsg();
-#endif /* PRINT_ONLY_SERVER */
}
void AbortDDX (void)
char *argv[],
int i)
{
-#ifdef PRINT_ONLY_SERVER
- return XprintOptions(argc, argv, i) - i;
-#else
return(0);
-#endif
}
#ifdef XINPUT
-/* $XdotOrg: xc/programs/Xserver/dix/main.c,v 1.4 2004/09/18 23:18:35 gisburn Exp $ */
+/* $XdotOrg: xc/programs/Xserver/dix/main.c,v 1.5 2005/03/07 23:02:58 gisburn Exp $ */
/* $XFree86: xc/programs/Xserver/dix/main.c,v 3.43 2003/10/30 21:21:02 herrb Exp $ */
/***********************************************************
#include "site.h"
#include "dixfont.h"
#include "extnsionst.h"
+#include "DiPrint.h"
#ifdef PANORAMIX
#include "panoramiXsrv.h"
#else
display = "0";
InitGlobals();
+ PrinterInitGlobals();
/* Quartz support on Mac OS X requires that the Cocoa event loop be in
* the main thread. This allows the X server main to be called again
InitCallbackManager();
InitVisualWrap();
InitOutput(&screenInfo, argc, argv);
+ PrinterInitOutput(&screenInfo, argc, argv);
+
if (screenInfo.numScreens < 1)
FatalError("no screens found");
if (screenInfo.numVideoScreens < 0)
screenInfo.numVideoScreens = screenInfo.numScreens;
-#ifdef XPRINT
- PrinterInitOutput(&screenInfo, argc, argv);
-#endif
InitExtensions(argc, argv);
if (!InitClientPrivates(serverClient))
FatalError("failed to allocate serverClient devprivates");
#include "misc.h"
#include "font.h"
+#include "DiPrint.h"
Bool
XpClientIsBitmapClient(
return FALSE;
}
int
-XprintOptions(
+PrinterOptions(
int argc,
char **argv,
int i)
{
return i;
}
+void
+PrinterInitOutput(
+ ScreenInfo *pScreenInfo,
+ int argc,
+ char **argv)
+{
+}
+void PrinterUseMsg(void)
+{
+}
+void PrinterInitGlobals(void)
+{
+}
+
+
-/* $XdotOrg: xc/programs/Xserver/os/utils.c,v 1.10 2004/11/15 15:06:50 ago Exp $ */
+/* $XdotOrg: xc/programs/Xserver/os/utils.c,v 1.11 2004/11/25 12:48:21 ago Exp $ */
/* $Xorg: utils.c,v 1.5 2001/02/09 02:05:24 xorgcvs Exp $ */
/*
#include "picture.h"
#endif
+#include "DiPrint.h"
+
Bool noTestExtensions;
#ifdef BEZIER
Bool noBezierExtension = FALSE;
#ifdef XCSECURITY
ErrorF("-sp file security policy file\n");
#endif
+ PrinterUseMsg();
ErrorF("-su disable any save under support\n");
ErrorF("-t # mouse threshold (pixels)\n");
ErrorF("-terminate terminate at server reset\n");
}
#endif
#ifdef XPRINT
- else if ((skip = XprintOptions(argc, argv, i)) != i)
+ else if ((skip = PrinterOptions(argc, argv, i)) != i)
{
i = skip - 1;
}