X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fxscreensaver-command.c;h=a267f4e7538659fec2a1cc15a984f342bbd2a296;hp=2d7f3326064d97916b44782cf7530bed434d2e14;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08 diff --git a/driver/xscreensaver-command.c b/driver/xscreensaver-command.c index 2d7f3326..a267f4e7 100644 --- a/driver/xscreensaver-command.c +++ b/driver/xscreensaver-command.c @@ -1,5 +1,4 @@ -/* xscreensaver-command, Copyright (c) 1991-1997 - * by Jamie Zawinski +/* xscreensaver-command, Copyright (c) 1991-2004 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -15,246 +14,419 @@ #endif #include +#include +#include +#include +#include + +#ifdef HAVE_UNISTD_H +# include +#endif + #include /* for CARD32 */ #include #include #include /* for XGetClassHint() */ #include -#include +#include /* only needed to get through xscreensaver.h */ + +#include "remote.h" #include "version.h" #ifdef _VROOT_H_ ERROR! you must not include vroot.h in this file #endif +char *progname; + +Atom XA_VROOT; +Atom XA_SCREENSAVER, XA_SCREENSAVER_VERSION, XA_SCREENSAVER_RESPONSE; +Atom XA_SCREENSAVER_ID, XA_SCREENSAVER_STATUS, XA_SELECT, XA_DEMO, XA_EXIT; +Atom XA_BLANK, XA_LOCK; +static Atom XA_ACTIVATE, XA_DEACTIVATE, XA_CYCLE, XA_NEXT, XA_PREV; +static Atom XA_RESTART, XA_PREFS, XA_THROTTLE, XA_UNTHROTTLE; + static char *screensaver_version; -static char *usage = "usage: %s -\n\ +# ifdef __GNUC__ + __extension__ /* don't warn about "string length is greater than the + length ISO C89 compilers are required to support" in the + usage string... */ +# endif +static char *usage = "\n\ +usage: %s -