diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kdm/kfrontend/kdm_greet.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdm/kfrontend/kdm_greet.h')
-rw-r--r-- | kdm/kfrontend/kdm_greet.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/kdm/kfrontend/kdm_greet.h b/kdm/kfrontend/kdm_greet.h new file mode 100644 index 000000000..df325c28d --- /dev/null +++ b/kdm/kfrontend/kdm_greet.h @@ -0,0 +1,91 @@ +/* + +KDE Greeter module for xdm + +Copyright (C) 2001-2003 Oswald Buddenhagen <ossi@kde.org> + +This file contains code from the old xdm core, +Copyright 1988, 1998 Keith Packard, MIT X Consortium/The Open Group + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +*/ + +#ifndef _KDM_GREET_H_ +#define _KDM_GREET_H_ + +#include <greet.h> /* for the ATTR_ defines */ +#include <config.ci> /* for the HAVE_VTS define */ + +#ifdef __cplusplus +extern "C" { +#endif + +void GSet( int master ); +void GSendInt( int val ); +void GSendStr( const char *buf ); +/*void GSendNStr( const char *buf, int len );*/ +void GSendArr( int len, const char *buf ); +int GRecvInt( void ); +char *GRecvStr( void ); +char **GRecvStrArr( int *len ); +char *GRecvArr( int *len ); + +int GetCfgInt( int id ); +char *GetCfgStr( int id ); +char **GetCfgStrArr( int id, int *len ); + +typedef struct dpySpec { + struct dpySpec *next; + char *display, *from, *user, *session; +#ifdef HAVE_VTS + int vt; +#endif + int flags; + int count; +} dpySpec; + +dpySpec *fetchSessions( int flags ); +void disposeSessions( dpySpec *sess ); + +void freeStrArr( char **arr ); + +void Debug( const char *fmt, ... ); +void LogInfo( const char *fmt, ... ); +void LogWarn( const char *fmt, ... ); +void LogError( const char *fmt, ... ); +void LogPanic( const char *fmt, ... ) ATTR_NORETURN; + +struct _XDisplay; + +void SecureDisplay( struct _XDisplay *dpy ); +void UnsecureDisplay( struct _XDisplay *dpy ); +int PingServer( struct _XDisplay *dpy ); + +void setup_modifiers( struct _XDisplay *mdpy, int numlock ); +void restore_modifiers( void ); + +void setCursor( struct _XDisplay *mdpy, int window, int shape ); + + +extern int rfd; /* for select() loops */ + +extern char *dname; /* d->name */ + +#ifdef __cplusplus +} +#endif + +#endif /* _KDM_GREET_H_ */ |