source: trunk/athena/etc/xdm/xdm/LoginP.h @ 6052

Revision 6052, 2.7 KB checked in by lwvanels, 33 years ago (diff)
Initial revision
Line 
1/*
2 * xdm - display manager daemon
3 *
4 * $XConsortium: LoginP.h,v 1.6 89/07/21 13:43:57 jim Exp $
5 *
6 * Copyright 1988 Massachusetts Institute of Technology
7 *
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation for any purpose and without fee is hereby granted, provided
10 * that the above copyright notice appear in all copies and that both that
11 * copyright notice and this permission notice appear in supporting
12 * documentation, and that the name of M.I.T. not be used in advertising or
13 * publicity pertaining to distribution of the software without specific,
14 * written prior permission.  M.I.T. makes no representations about the
15 * suitability of this software for any purpose.  It is provided "as is"
16 * without express or implied warranty.
17 *
18 * Author:  Keith Packard, MIT X Consortium
19 */
20
21/*
22* $XConsortium: LoginP.h,v 1.6 89/07/21 13:43:57 jim Exp $
23*/
24
25#ifndef _LoginP_h
26#define _LoginP_h
27
28#include "Login.h"
29#include <X11/CoreP.h>
30
31#define GET_NAME        0
32#define GET_PASSWD      1
33#define DONE            2
34
35/* New fields for the login widget instance record */
36typedef struct {
37        Pixel           textpixel;      /* foreground pixel */
38        Pixel           promptpixel;    /* prompt pixel */
39        Pixel           greetpixel;     /* greeting pixel */
40        Pixel           failpixel;      /* failure pixel */
41        GC              textGC;         /* pointer to GraphicsContext */
42        GC              bgGC;           /* pointer to GraphicsContext */
43        GC              xorGC;          /* pointer to GraphicsContext */
44        GC              promptGC;
45        GC              greetGC;
46        GC              failGC;
47        char            *greeting;      /* greeting */
48        char            *unsecure_greet;/* message displayed when insecure */
49        char            *namePrompt;    /* name prompt */
50        char            *passwdPrompt;  /* password prompt */
51        char            *fail;          /* failure message */
52        XFontStruct     *font;          /* font for text */
53        XFontStruct     *promptFont;    /* font for prompts */
54        XFontStruct     *greetFont;     /* font for greeting */
55        XFontStruct     *failFont;      /* font for failure message */
56        int             state;          /* state */
57        int             cursor;         /* current cursor position */
58        int             failUp;         /* failure message displayed */
59        LoginData       data;           /* name/passwd */
60        char            *sessionArg;    /* argument passed to session */
61        void            (*notify_done)();/* proc to call when done */
62        int             failTimeout;    /* seconds til drop fail msg */
63        XtIntervalId    interval_id;    /* drop fail message note */
64        Boolean         secure_session; /* session is secured */
65        Boolean         allow_access;   /* disable access control on login */
66   } LoginPart;
67
68/* Full instance record declaration */
69typedef struct _LoginRec {
70   CorePart core;
71   LoginPart login;
72   } LoginRec;
73
74/* New fields for the Login widget class record */
75typedef struct {int dummy;} LoginClassPart;
76
77/* Full class record declaration. */
78typedef struct _LoginClassRec {
79   CoreClassPart core_class;
80   LoginClassPart login_class;
81   } LoginClassRec;
82
83/* Class pointer. */
84extern LoginClassRec loginClassRec;
85
86#endif /* _LoginP_h */
Note: See TracBrowser for help on using the repository browser.