CvtCache.h File Reference

#include <X11/Xmu/DisplayQue.h>
#include <X11/Xfuncproto.h>

Include dependency graph for CvtCache.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _XmuCvtCache

Typedefs

typedef _XmuCvtCache XmuCvtCache

Functions

_XFUNCPROTOBEGIN XmuCvtCache_XmuCCLookupDisplay (Display *dpy)
void _XmuStringToBitmapInitCache (XmuCvtCache *c)
void _XmuStringToBitmapFreeCache (XmuCvtCache *c)


Typedef Documentation

typedef struct _XmuCvtCache XmuCvtCache


Function Documentation

_XFUNCPROTOBEGIN XmuCvtCache* _XmuCCLookupDisplay ( Display *  dpy  ) 

Definition at line 92 of file CvtCache.c.

References _CloseDisplay(), _FreeCCDQ(), _InitializeCvtCache(), _XmuDisplayQueueEntry::data, dq, free(), malloc(), NULL, XmuDQAddDisplay(), XmuDQCreate(), and XmuDQLookupDisplay().

Referenced by XmuLocatePixmapFile().

00093 {
00094     XmuDisplayQueueEntry *e;
00095 
00096     /*
00097      * If no displays have been added before this, create the display queue.
00098      */
00099     if (!dq) {
00100         dq = XmuDQCreate (_CloseDisplay, _FreeCCDQ, NULL);
00101         if (!dq) return NULL;
00102     }
00103     
00104     /*
00105      * See if the display is already there
00106      */
00107     e = XmuDQLookupDisplay (dq, dpy);   /* see if it's there */
00108     if (!e) {                           /* else create it */
00109         XmuCvtCache *c = (XmuCvtCache *) malloc (sizeof (XmuCvtCache));
00110         if (!c) return NULL;
00111 
00112         /*
00113          * Add the display to the queue
00114          */
00115         e = XmuDQAddDisplay (dq, dpy, (XPointer) c);
00116         if (!e) {
00117             free ((char *) c);
00118             return NULL;
00119         }
00120 
00121         /*
00122          * initialize fields in cache
00123          */
00124         _InitializeCvtCache (c);
00125     }
00126 
00127     /*
00128      * got it
00129      */
00130     return (XmuCvtCache *)(e->data);
00131 }

Here is the call graph for this function:

Here is the caller graph for this function:

void _XmuStringToBitmapFreeCache ( XmuCvtCache c  ) 

Referenced by _CloseDisplay().

Here is the caller graph for this function:

void _XmuStringToBitmapInitCache ( XmuCvtCache c  ) 

Referenced by _InitializeCvtCache().

Here is the caller graph for this function:


Generated on Sun Mar 4 16:03:41 2007 for Scilab [trunk] by  doxygen 1.5.1