difsutils.h revision 34f90d55
1/************************************************************ 2 3Copyright 1998 by Thomas E. Dickey <dickey@clark.net> 4 5 All Rights Reserved 6 7Permission to use, copy, modify, and distribute this software and its 8documentation for any purpose and without fee is hereby granted, 9provided that the above copyright notice appear in all copies and that 10both that copyright notice and this permission notice appear in 11supporting documentation, and that the name of the above listed 12copyright holder(s) not be used in advertising or publicity pertaining 13to distribution of the software without specific, written prior 14permission. 15 16THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD 17TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 18AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE 19LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 24********************************************************/ 25 26#ifndef _DIFSUTILS_H 27#define _DIFSUTILS_H 1 28 29#include <misc.h> 30#include <auth.h> 31#include <X11/fonts/font.h> 32#include <X11/fonts/fontstruct.h> 33 34typedef void (*DifsWakeupFunc)(pointer data, int result, unsigned long * pReadmask); 35typedef Bool (*DifsWorkFunc) (ClientPtr, pointer); 36 37extern AuthContextPtr GetClientAuthorization (void); 38extern Bool ClientIsAsleep (ClientPtr client); 39extern Bool ClientSleep (ClientPtr client, Bool (*function) (ClientPtr, pointer), pointer data); 40extern Bool QueueWorkProc (DifsWorkFunc function, ClientPtr client, pointer data); 41extern Bool RegisterBlockAndWakeupHandlers (BlockHandlerProcPtr blockHandler, DifsWakeupFunc wakeupHandler, pointer blockData); 42#if 0 43extern Bool XpClientIsBitmapClient (ClientPtr client); 44extern Bool XpClientIsPrintClient (ClientPtr client, FontPathElementPtr fpe); 45extern FontResolutionPtr GetClientResolutions (int *num); 46#endif 47#if 0 48extern int GetDefaultPointSize (void); 49#endif 50extern int SetDefaultResolutions (char *str); 51#if 0 52extern int client_auth_generation (ClientPtr client); 53#endif 54extern int set_font_authorizations (char **authorizations, int *authlen, ClientPtr client); 55extern int strncmpnocase (const char *first, const char *second, int n); 56extern pointer Xalloc (unsigned long m); 57extern pointer Xrealloc (pointer n, unsigned long m); 58extern void BlockHandler (OSTimePtr pTimeout, pointer pReadmask); 59extern void ClientWakeup (ClientPtr client); 60extern void CopyISOLatin1Lowered (char *d, char *s, int length); 61extern void InitBlockAndWakeupHandlers (void); 62extern void NoopDDA (void); 63extern void ProcessWorkQueue (void); 64extern void RemoveBlockAndWakeupHandlers (BlockHandlerProcPtr blockHandler, DifsWakeupFunc wakeupHandler, pointer blockData); 65extern void SetDefaultPointSize (int ps); 66extern void WakeupHandler (int result, unsigned long * pReadmask); 67extern void Xfree (unsigned long *n); 68extern pointer Xcalloc (unsigned long n); 69 70#endif /* _DIFSUTILS_H */ 71