diff options
author | Kristian H. Kristensen <hoegsberg@chromium.org> | 2016-12-07 15:37:15 -0800 |
---|---|---|
committer | Kristian H. Kristensen <hoegsberg@chromium.org> | 2016-12-07 15:37:29 -0800 |
commit | a0ae742ad343de399df4e4a9200b588a096c3b5b (patch) | |
tree | 7b7777f6b5f446b672ed8a017e8b2a084dd26fe4 /font.c | |
parent | d911f1d5ee8be18c7b37816084be81e0d9c7ae41 (diff) |
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 121 |
1 files changed, 121 insertions, 0 deletions
@@ -0,0 +1,121 @@ +#include <stdint.h> +#include <stdio.h> +#include <string.h> +#include <stdlib.h> + +#include <X11/Xproto.h> +#include <X11/Xlib.h> + +#include "private.h" + +WL_EXPORT int +XOpenFont(Display *xdisplay) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_OpenFont, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int +XCloseFont(Display *xdisplay) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_CloseFont, 0); + + STUB(); + + return 1; +} + +WL_EXPORT XFontStruct * +XQueryFont(Display *xdisplay, XID font_id) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_QueryFont, 0); + + STUB(); + + return NULL; +} + +WL_EXPORT int +XQueryTextExtents(Display *xdisplay, + XID font_ID, + const char *string, + int nchars, + int *direction_return, + int *font_ascent_return, + int *font_descent_return, + XCharStruct *overall_return) + +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_QueryTextExtents, 0); + + STUB(); + + return 1; +} + +WL_EXPORT char ** +XListFonts(Display *xdisplay, + const char* pattern, + int maxnames, + int *actual_count) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_ListFonts, 0); + + STUB(); + + return NULL; +} + +WL_EXPORT char ** +XListFontsWithInfo(Display *xdisplay, + const char *pattern, + int maxnames, + int *count_return, + XFontStruct **info_return) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_ListFontsWithInfo, 0); + + STUB(); + + return NULL; +} + +WL_EXPORT int +XSetFontPath(Display *xdisplay, char **directories, int ndirs) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_SetFontPath, 0); + + STUB(); + + return 1; +} + +WL_EXPORT char ** +XGetFontPath(Display *xdisplay, int *npaths) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_GetFontPath, 0); + + STUB(); + + return NULL; +} + |