aboutsummaryrefslogtreecommitdiff
path: root/X11/fonts
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-06-08 14:57:43 +0200
committermarha <marha@users.sourceforge.net>2014-06-08 14:57:43 +0200
commit2614b017fb8a28f360897ece66815934fd1562f5 (patch)
tree572a1d708065635894f8606fcb2be79567851fc2 /X11/fonts
parent2acb86c9b086bdb9a3897db0b93820652e07cb59 (diff)
downloadvcxsrv-2614b017fb8a28f360897ece66815934fd1562f5.tar.gz
vcxsrv-2614b017fb8a28f360897ece66815934fd1562f5.tar.bz2
vcxsrv-2614b017fb8a28f360897ece66815934fd1562f5.zip
Updated following packages:
xproto 7.0.26 fontsproto 2.1.3 inputproto 2.3.1
Diffstat (limited to 'X11/fonts')
-rw-r--r--X11/fonts/font.h4
-rw-r--r--X11/fonts/fontproto.h2
-rw-r--r--X11/fonts/fontstruct.h52
3 files changed, 31 insertions, 27 deletions
diff --git a/X11/fonts/font.h b/X11/fonts/font.h
index b71046b72..a8346558b 100644
--- a/X11/fonts/font.h
+++ b/X11/fonts/font.h
@@ -140,7 +140,7 @@ extern void EmptyFontPatternCache (
extern void CacheFontPattern (
FontPatternCachePtr /* cache */,
- char * /* pattern */,
+ const char * /* pattern */,
int /* patlen */,
FontPtr /* pFont */
);
@@ -150,7 +150,7 @@ extern FontResolutionPtr GetClientResolutions(
extern FontPtr FindCachedFontPattern (
FontPatternCachePtr /* cache */,
- char * /* pattern */,
+ const char * /* pattern */,
int /* patlen */
);
diff --git a/X11/fonts/fontproto.h b/X11/fonts/fontproto.h
index 1ab8f3796..490629e1d 100644
--- a/X11/fonts/fontproto.h
+++ b/X11/fonts/fontproto.h
@@ -74,7 +74,7 @@ extern FontPtr CreateFontRec (void);
extern void DestroyFontRec (FontPtr font);
extern Bool _FontSetNewPrivate (FontPtr /* pFont */,
int /* n */,
- pointer /* ptr */);
+ void * /* ptr */);
extern int AllocateFontPrivateIndex (void);
extern void ResetFontPrivateIndex (void);
diff --git a/X11/fonts/fontstruct.h b/X11/fonts/fontstruct.h
index 97e771a94..55c89daea 100644
--- a/X11/fonts/fontstruct.h
+++ b/X11/fonts/fontstruct.h
@@ -122,14 +122,14 @@ typedef struct _Font {
void (*unload_font) (FontPtr /* font */);
void (*unload_glyphs) (FontPtr /* font */);
FontPathElementPtr fpe;
- pointer svrPrivate;
- pointer fontPrivate;
- pointer fpePrivate;
+ void *svrPrivate;
+ void *fontPrivate;
+ void *fpePrivate;
int maxPrivate;
- pointer *devPrivates;
+ void **devPrivates;
} FontRec;
-#define FontGetPrivate(pFont,n) ((n) > (pFont)->maxPrivate ? (pointer) 0 : \
+#define FontGetPrivate(pFont,n) ((n) > (pFont)->maxPrivate ? (void *) 0 : \
(pFont)->devPrivates[n])
#define FontSetPrivate(pFont,n,ptr) ((n) > (pFont)->maxPrivate ? \
@@ -143,23 +143,27 @@ typedef struct _FontNames {
char **names;
} FontNamesRec;
+
/* External view of font paths */
typedef struct _FontPathElement {
int name_length;
- char *name;
+#if FONT_PATH_ELEMENT_NAME_CONST
+ const
+#endif
+ char *name;
int type;
int refcount;
- pointer private;
+ void *private;
} FontPathElementRec;
-typedef Bool (*NameCheckFunc) (char *name);
+typedef Bool (*NameCheckFunc) (const char *name);
typedef int (*InitFpeFunc) (FontPathElementPtr fpe);
typedef int (*FreeFpeFunc) (FontPathElementPtr fpe);
typedef int (*ResetFpeFunc) (FontPathElementPtr fpe);
-typedef int (*OpenFontFunc) ( pointer client,
+typedef int (*OpenFontFunc) ( void *client,
FontPathElementPtr fpe,
Mask flags,
- char* name,
+ const char* name,
int namelen,
fsBitmapFormat format,
fsBitmapFormatMask fmask,
@@ -168,55 +172,55 @@ typedef int (*OpenFontFunc) ( pointer client,
char** aliasName,
FontPtr non_cachable_font);
typedef void (*CloseFontFunc) (FontPathElementPtr fpe, FontPtr pFont);
-typedef int (*ListFontsFunc) (pointer client,
+typedef int (*ListFontsFunc) (void *client,
FontPathElementPtr fpe,
- char* pat,
+ const char* pat,
int len,
int max,
FontNamesPtr names);
-typedef int (*StartLfwiFunc) (pointer client,
+typedef int (*StartLfwiFunc) (void *client,
FontPathElementPtr fpe,
- char* pat,
+ const char* pat,
int len,
int max,
- pointer* privatep);
+ void ** privatep);
-typedef int (*NextLfwiFunc) (pointer client,
+typedef int (*NextLfwiFunc) (void *client,
FontPathElementPtr fpe,
char** name,
int* namelen,
FontInfoPtr* info,
int* numFonts,
- pointer private);
+ void *private);
typedef int (*WakeupFpeFunc) (FontPathElementPtr fpe,
unsigned long* LastSelectMask);
-typedef void (*ClientDiedFunc) (pointer client,
+typedef void (*ClientDiedFunc) (void *client,
FontPathElementPtr fpe);
-typedef int (*LoadGlyphsFunc) (pointer client,
+typedef int (*LoadGlyphsFunc) (void *client,
FontPtr pfont,
Bool range_flag,
unsigned int nchars,
int item_size,
unsigned char* data);
-typedef int (*StartLaFunc) (pointer client,
+typedef int (*StartLaFunc) (void *client,
FontPathElementPtr fpe,
- char* pat,
+ const char* pat,
int len,
int max,
- pointer* privatep);
+ void ** privatep);
-typedef int (*NextLaFunc) (pointer client,
+typedef int (*NextLaFunc) (void *client,
FontPathElementPtr fpe,
char** namep,
int* namelenp,
char** resolvedp,
int* resolvedlenp,
- pointer private);
+ void *private);
typedef void (*SetPathFunc)(void);