tsolutils.c revision 606
32N/A#pragma ident "@(#)tsolutils.c 1.19 09/01/14 SMI"
32N/A#ifdef HAVE_DIX_CONFIG_H
32N/A#include <dix-config.h>
32N/A#define NEED_EVENTS
911N/A#include "auditwrite.h"
32N/A#include "windowstr.h"
32N/A#include "scrnintstr.h"
#include "tsolinfo.h"
#include "misc.h"
#include "inputstr.h"
#include "propertyst.h"
#define EMPTIED 0
FALSE };
* The following need to be moved to tsolextension.c
* Use the NodeRec struct in tsolinfo.h. This is referenced
static int tsolPrivKeyIndex;
unsigned int StripeHeight = 0;
int tsol_nodelength = 0;
extern int PanoramiXPixHeight;
struct xUIDreply
unsigned char family;
unsigned char pad;
unsigned short length;
struct slentry
char allocated;
struct uidentry
char allocated;
typedef struct _TsolConfig
int count;
char **list;
{0, NULL},
{0, NULL},
{0, NULL},
{0, NULL},
{0, NULL}
#ifdef DEBUG
* flags are defined in tsolinfo.h
init_TSOL_cached_SL(void)
init_TSOL_uid_table(void)
#if UNUSED
count_uid_table(void)
int i, count = 0;
for (i = 0; i < MAX_UID_ENTRY; i++)
count++;
return (count);
for (i = 0; i < MAX_UID_ENTRY; i++)
int nUid)
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)
extern char *ConnectionInfo;
extern int connBlockScreenStart;
int old_height;
float height_mult;
for (i = 0; i < screen_num; i++)
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 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;
while (tsolprop)
return TRUE;
return TRUE;
return FALSE;
return TRUE;
return FALSE;
if (pWin)
return (NULL);
if (pWin)
return (pWin);
if (pWin)
return (NULL);
return FALSE;
return TRUE;
return TRUE;
return FALSE;
#ifdef SHAPE
return(pSib);
if (pWin)
return (pWin);
TsolPointerWindow(void)
return TRUE;
return FALSE;