X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fprefs.h;h=6640492bb7d44b817dc3437976d0512df1018b1c;hp=fb4cd1bd79fb7af1ad672efd97d40ce9d9b8e2d4;hb=8eb2873d7054e705c4e83f22d18c40946a9e2529;hpb=a1d41b2aa6e18bf9a49b914a99dda8232c5d7762 diff --git a/driver/prefs.h b/driver/prefs.h index fb4cd1bd..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,6 +59,9 @@ 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 */