X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fprefs.h;h=b5a528c9aa7108d7c478858c35c5f6e1c75057a1;hb=72c1f4c1dc6ab07fe121a327ff1c30bf51ef74c1;hp=cf77f8b2ce218d136e5cba9eae7b1d8baf3049e2;hpb=c31d10b6605cd8dc1a7b61fef4256f06198767e5;p=xscreensaver diff --git a/driver/prefs.h b/driver/prefs.h index cf77f8b2..b5a528c9 100644 --- a/driver/prefs.h +++ b/driver/prefs.h @@ -12,6 +12,14 @@ #ifndef __XSCREENSAVER_PREFS_H__ #define __XSCREENSAVER_PREFS_H__ +typedef struct screenhack screenhack; +struct screenhack { + Bool enabled_p; + char *visual; + char *name; + char *command; +}; + typedef struct saver_preferences saver_preferences; @@ -38,19 +46,13 @@ struct saver_preferences { Bool fade_p; /* whether to fade to black, if possible */ Bool unfade_p; /* whether to fade from black, if possible */ - int fade_seconds; /* how long that should take */ + Time fade_seconds; /* how long that should take */ int fade_ticks; /* how many ticks should be used */ - Bool fading_possible_p; /* Whether fading to/from black is possible. - (This isn't strictly a preference, as it - can only be known by querying the display; - the caller of the prefs code may fill this - in if it knows/cares, and warnings will be - issued.) */ Bool install_cmap_p; /* whether we should use our own colormap when using the screen's default visual. */ - char **screenhacks; /* the programs to run */ + screenhack **screenhacks; /* the programs to run */ int screenhacks_count; int nice_inferior; /* nice value for subprocs */ @@ -68,6 +70,7 @@ struct saver_preferences { Bool use_xidle_extension; /* which extension to use, if possible */ Bool use_mit_saver_extension; Bool use_sgi_saver_extension; + Bool use_proc_interrupts; char *shell; /* where to find /bin/sh */ @@ -83,4 +86,8 @@ extern Bool init_file_changed_p (saver_preferences *p); extern void write_init_file (saver_preferences *p, const char *version_string); 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); + #endif /* __XSCREENSAVER_PREFS_H__ */