X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver-command.c;h=684fd4e347af27042914b61806357d21fd7a9ebb;hb=14627f4038ada5d11456f3770090f3c39740d70f;hp=46af331fc3858a8bf915995acabb2c7c8f417a9f;hpb=65740e2a8dea3d6309ae6e8914a0fb79e993ada8;p=xscreensaver diff --git a/driver/xscreensaver-command.c b/driver/xscreensaver-command.c old mode 100755 new mode 100644 index 46af331f..684fd4e3 --- a/driver/xscreensaver-command.c +++ b/driver/xscreensaver-command.c @@ -1,4 +1,5 @@ -/* xscreensaver-command, Copyright (c) 1991-1994 Jamie Zawinski +/* xscreensaver-command, Copyright (c) 1991-2000 + * by 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 @@ -9,146 +10,404 @@ * implied warranty. */ -#include "version.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include +#include +#include +#include + +#ifdef HAVE_UNISTD_H +# include +#endif + +#include /* for CARD32 */ #include #include +#include /* for XGetClassHint() */ #include -#if __STDC__ -# include -#endif + +#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\ +static char *usage = "\n\ +usage: %s -