X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fprefs.h;h=6640492bb7d44b817dc3437976d0512df1018b1c;hb=8eb2873d7054e705c4e83f22d18c40946a9e2529;hp=a2b83b75bcc26cefe949fcea56437714021802bb;hpb=ebc241816cc8e3eec7270a594bb1a607df32bcd6;p=xscreensaver diff --git a/driver/prefs.h b/driver/prefs.h index a2b83b75..6640492b 100644 --- a/driver/prefs.h +++ b/driver/prefs.h @@ -20,6 +20,8 @@ struct screenhack { char *command; }; +typedef enum { RANDOM_HACKS, ONE_HACK, BLANK_ONLY, DONT_BLANK } saver_mode; + typedef struct saver_preferences saver_preferences; @@ -57,7 +59,11 @@ struct saver_preferences { screenhack **screenhacks; /* the programs to run */ int screenhacks_count; + saver_mode mode; /* hack-selection mode */ + int selected_hack; /* in one_hack mode, this is the one */ + int nice_inferior; /* nice value for subprocs */ + int inferior_memory_limit; /* setrlimit(LIMIT_AS) value for subprocs */ Time initial_delay; /* how long to sleep after launch */ Time splash_duration; /* how long the splash screen stays up */ @@ -74,6 +80,11 @@ struct saver_preferences { Time dpms_suspend; /* how long until monitor power-saves */ Time dpms_off; /* how long until monitor powers down */ + Bool grab_desktop_p; /* These are not used by "xscreensaver" */ + Bool grab_video_p; /* itself: they are used by the external */ + Bool random_image_p; /* "xscreensaver-getimage" program, and set */ + char *image_directory; /* by the "xscreensaver-demo" configurator. */ + Bool use_xidle_extension; /* which extension to use, if possible */ Bool use_mit_saver_extension; Bool use_sgi_saver_extension;