http://packetstormsecurity.org/UNIX/admin/xscreensaver-3.28.tar.gz
[xscreensaver] / driver / prefs.h
index 8395f323f1f4ee51bd1c3d7a2265c60c11edb510..a2b83b75bcc26cefe949fcea56437714021802bb 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1993-1998 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1993-2001 Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -38,6 +38,7 @@ struct saver_preferences {
 
   Bool verbose_p;              /* whether to print out lots of status info */
   Bool timestamp_p;            /* whether to mark messages with a timestamp */
+  Bool capture_stderr_p;       /* whether to redirect stdout/stderr  */
   Bool debug_p;                        /* pay no mind to the man behind the curtain */
   Bool xsync_p;                        /* whether XSynchronize has been called */
 
@@ -48,6 +49,7 @@ struct saver_preferences {
   Bool unfade_p;               /* whether to fade from black, if possible */
   Time fade_seconds;           /* how long that should take */
   int fade_ticks;              /* how many ticks should be used */
+  Bool splash_p;               /* whether to do a splash screen at startup */
 
   Bool install_cmap_p;         /* whether we should use our own colormap
                                   when using the screen's default visual. */
@@ -67,6 +69,11 @@ struct saver_preferences {
   Time notice_events_timeout;  /* how long after window creation to select */
   Time watchdog_timeout;       /* how often to re-raise and re-blank screen */
 
+  Bool dpms_enabled_p;         /* Whether to power down the monitor */
+  Time dpms_standby;           /* how long until monitor goes black */
+  Time dpms_suspend;           /* how long until monitor power-saves */
+  Time dpms_off;               /* how long until monitor powers down */
+
   Bool use_xidle_extension;    /* which extension to use, if possible */
   Bool use_mit_saver_extension;
   Bool use_sgi_saver_extension;
@@ -90,5 +97,12 @@ const char *init_file_name (void);
 extern screenhack *parse_screenhack (const char *line);
 extern void free_screenhack (screenhack *hack);
 extern char *format_hack (screenhack *hack, Bool wrap_p);
+char *make_hack_name (const char *shell_command);
+
+/* From dpms.c */
+extern void sync_server_dpms_settings (Display *dpy, Bool enabled_p,
+                                       int standby_secs, int suspend_secs,
+                                       int off_secs,
+                                       Bool verbose_p);
 
 #endif /* __XSCREENSAVER_PREFS_H__ */