Files
heimdal/appl/xnlock/xnlock.h
Assar Westerlund 07984e6fc5 Got rid of lots of warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@225 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-02-04 14:53:40 +00:00

38 lines
811 B
C

/*
* nlock.h -- "new"lockscreen, or, "nose"lockscreen
*
* Dan Heller
*/
#include <stdio.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/keysym.h>
#include <X11/Xos.h>
char *crypt(const char *key, const char *salt);
/* The program should be something that outputs a small amount of text */
#define DEFAULT_PROGRAM "fortune -s"
XtAppContext app;
Display *dpy;
unsigned short Width, Height;
#define win XtWindow(widget)
Widget widget;
GC gc;
XtIntervalId timeout_id;
#define font_height(font) (font->ascent + font->descent)
#ifndef MAXPATHLEN
#define MAXPATHLEN BUFSIZ
#endif /* MAXPATHLEN */
char *ProgName, *words;
int x, y;
extern int getwordsfrom;
Pixel Black, White;
XFontStruct *font;
extern Pixmap
left0, left1, right0, right1, left_front, right_front, front, down;