-extern void xlockmore_screenhack (Display *dpy, Window window,
- Bool want_writable_colors,
- Bool want_uniform_colors,
- Bool want_smooth_colors,
- Bool want_bright_colors,
- void (*hack_init) (ModeInfo *),
- void (*hack_draw) (ModeInfo *),
- void (*hack_free) (ModeInfo *));
+struct xlockmore_function_table {
+ const char *progclass;
+ const char *defaults;
+ Bool want_writable_colors;
+ enum { color_scheme_default, color_scheme_uniform,
+ color_scheme_smooth, color_scheme_bright }
+ desired_color_scheme;
+ void (*hack_init) (ModeInfo *);
+ void (*hack_draw) (ModeInfo *);
+ void (*hack_reshape) (ModeInfo *, int, int);
+ void (*hack_refresh) (ModeInfo *);
+ void (*hack_free) (ModeInfo *);
+ Bool (*hack_handle_events) (ModeInfo *, XEvent *);
+ ModeSpecOpt *opts;
+
+ unsigned int screen_count; /* Only used on the OS X and iOS ports. */
+};