Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kdm / kfrontend / kdm_greet.h
blob16daafc04c1939bfe0fca037ae7a098c3d60ad65
1 /*
3 KDE Greeter module for xdm
5 Copyright (C) 2001-2003 Oswald Buddenhagen <ossi@kde.org>
7 This file contains code from the old xdm core,
8 Copyright 1988, 1998 Keith Packard, MIT X Consortium/The Open Group
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #ifndef _KDM_GREET_H_
27 #define _KDM_GREET_H_
29 #include <greet.h>
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
35 void gSet( int master );
36 void gSendInt( int val );
37 void gSendStr( const char *buf );
38 /*void gSendNStr( const char *buf, int len );*/
39 void gSendArr( int len, const char *buf );
40 int gRecvInt( void );
41 char *gRecvStr( void );
42 char **gRecvStrArr( int *len );
43 char *gRecvArr( int *len );
45 int getCfgInt( int id );
46 char *getCfgStr( int id );
47 char **getCfgStrArr( int id, int *len );
49 void freeStrArr( char **arr );
51 extern int debugLevel;
52 void debug( const char *fmt, ... );
53 void logInfo( const char *fmt, ... );
54 void logWarn( const char *fmt, ... );
55 void logError( const char *fmt, ... );
56 void logPanic( const char *fmt, ... ) ATTR_NORETURN;
58 struct _XDisplay;
60 void secureKeyboard( struct _XDisplay *dpy );
61 void securePointer( struct _XDisplay *dpy );
62 void secureInputs( struct _XDisplay *dpy );
63 void unsecureInputs( struct _XDisplay *dpy );
64 void secureDisplay( struct _XDisplay *dpy );
65 void unsecureDisplay( struct _XDisplay *dpy );
66 int pingServer( struct _XDisplay *dpy );
68 void setupModifiers( struct _XDisplay *mdpy, int numlock );
69 void restoreModifiers( void );
71 void setCursor( struct _XDisplay *mdpy, int window, int shape );
74 extern int rfd; /* for select() loops */
76 extern char *dname; /* d->name */
78 #ifdef __cplusplus
80 #endif
82 #endif /* _KDM_GREET_H_ */