tsolutils.c revision 1088
98N/A#ifdef HAVE_DIX_CONFIG_H
493N/A#include <dix-config.h>
970N/A#include "auditwrite.h"
970N/A#include "windowstr.h"
970N/A#include "scrnintstr.h"
98N/A#include "tsolinfo.h"
911N/A#include "tsolpolicy.h"
911N/A#include "inputstr.h"
98N/A#include "propertyst.h"
493N/A#include "panoramiXsrv.h"
493N/A#include "registry.h"
967N/A * The following need to be moved to tsolextension.c
606N/A * Use the NodeRec struct in tsolinfo.h. This is referenced
970N/Aunsigned int StripeHeight = 0;
493N/Aint tsol_nodelength = 0;
970N/Atypedef struct _TsolConfig
970N/Acount_uid_table(void)
970N/A for (i = 0; i < MAX_UID_ENTRY; i++)
970N/A for (i = 0; i < MAX_UID_ENTRY; i++)
970N/A for (i = 0; i < MAX_UID_ENTRY; i++)
if (nUid != j)
while (i < MAX_UID_ENTRY)
while (i < MAX_UID_ENTRY)
#if UNUSED
if (*userid == 0)
while (i < MAX_UID_ENTRY)
lookupSL_low(void)
return (slptr);
if (i < MAX_SL_ENTRY)
return (NULL);
/* Updated version based roughly on RREditConnectionInfo in randr/rrscreen.c */
char *vendor;
int old_height;
float height_mult;
sizeof (xPixmapFormat) *
for (i = 0; i < screen_num; i++)
sizeof (xWindowRoot));
sizeof (xDepth));
sizeof (xVisualType));
if (noPanoramiXExtension)
init_xtsol(void)
static KeySym
return NoSymbol;
per--;
return lsym;
return NoSymbol;
return usym;
static KeyCode
KeySym *k;
mods = 0;
while (k < kmax) {
if (*k == ks ) {
return mods;
int rc;
int max_keys_per_mod = 0;
int count;
char **newlist;
for (i = 0; i < KEYWORDCOUNT; i++) {
if (i >= KEYWORDCOUNT) {
InitPrivileges(void)
int count;
char **list;
for (i = 0; i < count; i++) {
LoadTsolConfig(void)
char *keyword;
char *value;
MakeTSOLAtoms(void)
char *atomname;
for (i = 0; i < TSOL_ATOMCOUNT; i++) {
AtomError();
AtomError();
int status;
char *regexpstrp;
int regexpstrlen;
if (status == 0) {
if (status == 0)
return (TRUE);
return (FALSE);
return (TRUE);
return (FALSE);
int count;
char **list;
unsigned int flags = 0;
for (i = 0; i < count; i++) {
for (i = 0; i < count; i++) {
return (flags);
return TRUE;
return FALSE;
return TRUE;
return FALSE;
return TRUE;
return FALSE;
if (pWin)
return (NULL);
#ifdef UNUSED
if (pWin)
return (pWin);
if (pWin)
return (NULL);
return FALSE;
return TRUE;
return TRUE;
return FALSE;
#ifdef SHAPE
return(pSib);
if (pWin)
return (pWin);
return TRUE;
return FALSE;
_X_HIDDEN const char *
return access_mode_str;
_X_HIDDEN const char *
return str;
_X_HIDDEN const char *
return unknown_string;
return regentry;
_X_HIDDEN const char *
return unknown_string;
return regentry;
_X_HIDDEN const char *
const char *regentry;
if (req < 0) {
return unknown_string;
return regentry;