summaryrefslogtreecommitdiff
path: root/include/libxfontint.h
blob: 09772b6d504c7cdd7ff00a5f6d7024bebba2e5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
 * Copyright © 2015 Keith Packard
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, 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 copyright holders not be used in advertising or
 * publicity pertaining to distribution of the software without specific,
 * written prior permission.  The copyright holders make no representations
 * about the suitability of this software for any purpose.  It is provided "as
 * is" without express or implied warranty.
 *
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 * EVENT SHALL THE COPYRIGHT HOLDERS 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 _LIBXFONTINT_H_
#define _LIBXFONTINT_H_

#include <X11/fonts/FSproto.h>

#define client_auth_generation __libxfont__client_auth_generation
#define ClientSignal __libxfont__ClientSignal
#define DeleteFontClientID __libxfont__DeleteFontClientID
#define ErrorF __libxfont__ErrorF
#define find_old_font __libxfont__find_old_font
#define GetClientResolutions __libxfont__GetClientResolutions
#define GetDefaultPointSize __libxfont__GetDefaultPointSize
#define GetNewFontClientID __libxfont__GetNewFontClientID
#define GetTimeInMillis  __libxfont__GetTimeInMillis
#define init_fs_handlers __libxfont__init_fs_handlers
#define remove_fs_handlers __libxfont__remove_fs_handlers
#define __GetServerClient __libxfont____GetServerClient
#define set_font_authorizations __libxfont__set_font_authorizations
#define StoreFontClientFont __libxfont__StoreFontClientFont
#define MakeAtom __libxfont__MakeAtom
#define ValidAtom __libxfont__ValidAtom
#define NameForAtom __libxfont__NameForAtom

#define add_fs_fd __libxfont_add_fs_fd
#define remove_fs_fd __libxfont_remove_fs_fd
#define adjust_fs_wait_for_delay __libxfont_adjust_fs_wait_for_delay

#include	<X11/fonts/FS.h>
#include	<X11/fonts/FSproto.h>
#include	<X11/X.h>
#include	<X11/Xos.h>
#include	<X11/fonts/fontmisc.h>
#include	<X11/fonts/fontstruct.h>
#include	<X11/fonts/fontutil.h>
#include	<X11/fonts/fontproto.h>
#include	<errno.h>
#include	<limits.h>
#include	<stdint.h>

#include <X11/fonts/libxfont2.h>

#ifndef LIBXFONT_SKIP_ERRORF
void
ErrorF(const char *f, ...)  _X_ATTRIBUTE_PRINTF(1,2);
#endif

FontPtr
find_old_font(FSID id);

unsigned long
GetTimeInMillis (void);

int
register_fpe_funcs(const xfont2_fpe_funcs_rec *funcs);

void *
__GetServerClient(void);

int
set_font_authorizations(char **authorizations, int *authlen, ClientPtr client);

unsigned long
__GetServerGeneration (void);

int add_fs_fd(int fd, FontFdHandlerProcPtr handler, void *data);

void remove_fs_fd(int fd);

void adjust_fs_wait_for_delay(void *wt, unsigned long newdelay);

int
init_fs_handlers2(FontPathElementPtr fpe,
		  FontBlockHandlerProcPtr block_handler);

void
remove_fs_handlers2(FontPathElementPtr fpe,
		    FontBlockHandlerProcPtr blockHandler,
		    Bool all);

Atom
__libxfont_internal__MakeAtom(const char *string, unsigned len, int makeit);

int
__libxfont_internal__ValidAtom(Atom atom);

const char *
__libxfont_internal__NameForAtom(Atom atom);

int
CheckFSFormat(fsBitmapFormat format,
	      fsBitmapFormatMask fmask,
	      int *bit_order,
	      int *byte_order,
	      int *scan,
	      int *glyph,
	      int *image);

int
FontCouldBeTerminal(FontInfoPtr);

void
FontComputeInfoAccelerators(FontInfoPtr);

int
add_range (fsRange *newrange, int *nranges, fsRange **range,
	   Bool charset_subset);

#endif /* _LIBXFONTINT_H_ */