/************************************************************ Copyright 1998 by Thomas E. Dickey All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the above listed copyright holder(s) not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ #ifndef _DIFSUTILS_H #define _DIFSUTILS_H 1 #include #include #include #include #include typedef void (*DifsWakeupFunc)(pointer data, int result, unsigned long * pReadmask); typedef Bool (*DifsWorkFunc) (ClientPtr, pointer); extern AuthContextPtr GetClientAuthorization (void); extern Bool ClientIsAsleep (ClientPtr client); extern Bool ClientSleep (ClientPtr client, Bool (*function) (ClientPtr, pointer), pointer data); extern Bool QueueWorkProc (DifsWorkFunc function, ClientPtr client, pointer data); extern Bool RegisterBlockAndWakeupHandlers (FontBlockHandlerProcPtr blockHandler, DifsWakeupFunc wakeupHandler, pointer blockData); #if 0 extern FontResolutionPtr GetClientResolutions (int *num); #endif #if 0 extern int GetDefaultPointSize (void); #endif extern int SetDefaultResolutions (char *str); #if 0 extern int client_auth_generation (ClientPtr client); #endif extern int set_font_authorizations (char **authorizations, int *authlen, void *_client); extern int strncmpnocase (const char *first, const char *second, int n); extern pointer Xalloc (unsigned long m); extern pointer Xrealloc (pointer n, unsigned long m); extern void BlockHandler (OSTimePtr pTimeout, pointer pReadmask); extern void ClientWakeup (ClientPtr client); extern void InitBlockAndWakeupHandlers (void); extern void ProcessWorkQueue (void); extern void RemoveBlockAndWakeupHandlers (FontBlockHandlerProcPtr blockHandler, DifsWakeupFunc wakeupHandler, pointer blockData); extern void SetDefaultPointSize (int ps); extern void WakeupHandler (int result, unsigned long * pReadmask); extern void Xfree (unsigned long *n); extern pointer Xcalloc (unsigned long n); #endif /* _DIFSUTILS_H */