~ubuntu-branches/ubuntu/quantal/xscreensaver/quantal

« back to all changes in this revision

Viewing changes to driver/types.h

  • Committer: Bazaar Package Importer
  • Author(s): Ted Gould
  • Date: 2008-08-28 16:15:25 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080828161525-mxga521aoezxjq8h
Tags: 5.07-0ubuntu1
* Upgrade upstream version
* debian/control: Remove suggest xdaliclock as it is no longer
  included
* Remove 10_jwz-screensaver-randr-patch-3.patch as it has been merged
  upstream.
* Add 24_hacks_xsublim_enable.patch as it seems that xsublim was dropped
  from the build files.  There is nothing in the Changelog about it
  so I believe it was accidental.
* Updating the .desktop files from the XML files using gnome-screensaver's
  utility to do so.  Lots of text updates.  Also:
    * Added: abstractile.desktop
    * Added: cwaves.desktop
    * Added: m6502.desktop
    * Added: skytentacles.desktop
    * Removed: xteevee.desktop
* xscreensaver-gl-extra.files: Added skytentacles
* xscreensaver-data-extra.files: Added abstractile, cwaves and m6502
* xscreensaver-data.files: Remove partial abstractile, m6502 and cwaves

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* types.h
2
 
 *
3
 
 * This file is part of XScreenSaver,
4
 
 * Copyright (c) 1993-2004 Jamie Zawinski <jwz@jwz.org>
 
1
/* xscreensaver, Copyright (c) 1993-2008 Jamie Zawinski <jwz@jwz.org>
5
2
 *
6
3
 * Permission to use, copy, modify, distribute, and sell this software and its
7
4
 * documentation for any purpose is hereby granted without fee, provided that
12
9
 * implied warranty.
13
10
 */
14
11
 
15
 
#ifndef TYPES_H
16
 
#define TYPES_H
 
12
#ifndef __XSCREENSAVER_TYPES_H__
 
13
#define __XSCREENSAVER_TYPES_H__
17
14
 
18
15
typedef struct saver_info saver_info;
19
16
 
20
 
/* Unlock states. Old pw_* equivalents in square brackets:
21
 
 * ul_read - reading input (or ready to do so) [pw_read]
22
 
 * ul_success - auth success, unlock the screen [pw_ok]
23
 
 * ul_fail - authentication failed [pw_fail]
24
 
 * ul_cancel - user cancelled auth [pw_cancel or pw_null]
25
 
 * ul_time - timed out, user took too long [pw_time]
26
 
 * ul_finished - user pressed enter on the current prompt, process input
27
 
 */
28
 
enum unlock_state { ul_read, ul_success, ul_fail, ul_cancel, ul_time, ul_finished };
 
17
typedef enum {
 
18
  ul_read,              /* reading input or ready to do so */
 
19
  ul_success,           /* auth success, unlock */
 
20
  ul_fail,              /* auth fail */
 
21
  ul_cancel,            /* user cancelled auth (pw_cancel or pw_null) */
 
22
  ul_time,              /* timed out */
 
23
  ul_finished           /* user pressed enter */
 
24
} unlock_state;
29
25
 
30
26
typedef struct screenhack screenhack;
31
27
struct screenhack {
56
52
typedef struct saver_screen_info saver_screen_info;
57
53
typedef struct passwd_dialog_data passwd_dialog_data;
58
54
typedef struct splash_dialog_data splash_dialog_data;
 
55
typedef struct _monitor monitor;
59
56
 
60
57
 
61
58
/* This structure holds all the user-specified parameters, read from the
158
155
  saver_preferences prefs;
159
156
 
160
157
  int nscreens;
 
158
  int ssi_count;
161
159
  saver_screen_info *screens;
162
160
  saver_screen_info *default_screen;    /* ...on which dialogs will appear. */
163
 
 
 
161
  monitor **monitor_layout;             /* private to screens.c */
 
162
  Visual **best_gl_visuals;             /* visuals for GL hacks on screen N */
164
163
 
165
164
  /* =======================================================================
166
165
     global connection info
173
172
     server extension info
174
173
     ======================================================================= */
175
174
 
176
 
  Bool xinerama_p;                 /* Whether Xinerama is in use.            */
177
175
  Bool using_xidle_extension;      /* which extension is being used.         */
178
176
  Bool using_mit_saver_extension;  /* Note that `p->use_*' is the *request*, */
179
177
  Bool using_sgi_saver_extension;  /* and `si->using_*' is the *reality*.    */
247
245
  char *user;                   /* The user whose session is locked. */
248
246
  char *cached_passwd;          /* Cached password, used to avoid multiple
249
247
                                   prompts for password-only auth mechanisms.*/
250
 
  enum unlock_state unlock_state;
 
248
  unlock_state unlock_state;
251
249
 
252
250
  auth_conv_cb_t unlock_cb;     /* The function used to prompt for creds. */
253
251
  void (*auth_finished_cb) (saver_info *si);
349
347
  int current_depth;            /* How deep the visual (and the window) are. */
350
348
 
351
349
  Visual *default_visual;       /* visual to use when none other specified */
352
 
  Visual *best_gl_visual;       /* visual to use for GL hacks */
353
350
 
354
351
  Window real_vroot;            /* The original virtual-root window. */
355
352
  Window real_vroot_value;      /* What was in the __SWM_VROOT property. */
407
404
};
408
405
 
409
406
 
410
 
#endif
 
407
#endif /* __XSCREENSAVER_TYPES_H__ */