4 /* This file is automatically generated by sdksyms.sh. */
5 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
7 #ifdef HAVE_XORG_CONFIG_H
8 #include <xorg-config.h>
12 /* These must be included first */
14 #include "miscstruct.h"
17 /* render/Makefile.am */
21 #include "picturestr.h"
24 /* fb/Makefile.am -- module */
28 #include "fboverlay.h"
29 #include "wfbrename.h"
34 /* miext/shadow/Makefile.am -- module */
40 /* miext/damage/Makefile.am */
42 #include "damagestr.h"
44 /* miext/sync/Makefile.am */
46 #include "misyncstr.h"
48 #include "misyncshm.h"
51 /* Xext/Makefile.am -- half is module, half is builtin */
63 # include "panoramiXsrv.h"
64 # include "panoramiX.h"
68 /* hw/xfree86/int10/Makefile.am -- module */
70 #include "xf86int10.h"
74 /* hw/xfree86/i2c/Makefile.am -- "mostly" modules */
88 /* hw/xfree86/modes/Makefile.am */
90 #include "xf86Modes.h"
91 #include "xf86RandR12.h"
92 /* #include "xf86Rename.h" */
95 /* hw/xfree86/ddc/Makefile.am */
100 /* hw/xfree86/dri2/Makefile.am -- module */
107 /* hw/xfree86/vgahw/Makefile.am -- module */
113 /* hw/xfree86/fbdevhw/Makefile.am -- module */
119 /* hw/xfree86/common/Makefile.am */
120 #include "compiler.h"
123 #include "xf86Module.h"
125 #ifdef XSERVER_LIBPCIACCESS
126 #include "xf86VGAarbiter.h"
128 #include "xf86Priv.h"
129 #include "xf86Privstr.h"
130 #include "xf86cmap.h"
131 #include "xf86fbman.h"
133 #include "xf86Xinput.h"
137 # include "xf86xvmc.h"
138 # include "xf86xvpriv.h"
141 # include "vidmodeproc.h"
143 #include "xorgVersion.h"
144 #if defined(__sparc__) || defined(__sparc)
145 # include "xf86sbusBus.h"
149 /* hw/xfree86/ramdac/Makefile.am */
153 #include "xf86Cursor.h"
154 #include "xf86RamDac.h"
157 /* hw/xfree86/shadowfb/Makefile.am -- module */
159 #include "shadowfb.h"
163 /* hw/xfree86/os-support/solaris/Makefile.am */
165 # include "agpgart.h"
169 /* hw/xfree86/os-support/Makefile.am */
170 #include "xf86_OSproc.h"
171 #include "xf86_OSlib.h"
174 /* hw/xfree86/os-support/bus/Makefile.am */
175 #ifdef XSERVER_LIBPCIACCESS
176 # include "xf86Pci.h"
178 #if defined(__sparc__) || defined(__sparc)
179 # include "xf86Sbus.h"
183 /* hw/xfree86/dixmods/extmod/Makefile.am -- module */
189 /* hw/xfree86/parser/Makefile.am */
190 #include "xf86Parser.h"
191 #include "xf86Optrec.h"
194 /* hw/xfree86/vbe/Makefile.am -- module */
197 #include "vbeModes.h"
201 /* hw/xfree86/dri/Makefile.am -- module */
205 # include "dristruct.h"
212 #include "mipointer.h"
215 #include "mipointrst.h"
216 #include "mizerarc.h"
218 #include "mifillarc.h"
220 #include "miwideline.h"
221 #include "mistruct.h"
223 #include "mioverlay.h"
226 /* randr/Makefile.am */
227 #include "randrstr.h"
228 #include "rrtransform.h"
231 /* dbe/Makefile.am -- module */
233 #include "dbestruct.h"
237 /* exa/Makefile.am -- module */
243 #include "compositeext.h"
246 /* xfixes/Makefile.am */
250 /* include/Makefile.am */
253 #include "closestr.h"
255 #include "colormap.h"
256 #include "colormapst.h"
260 #include "cursorstr.h"
262 #include "dixaccess.h"
263 #include "dixevents.h"
265 #include "dixfontstr.h"
266 #include "dixfontstubs.h"
267 #include "dixgrabs.h"
268 #include "dixstruct.h"
269 #include "exevents.h"
270 #include "extension.h"
271 #include "extnsionst.h"
273 #include "gcstruct.h"
276 #include "inputstr.h"
277 /* already included */
280 #include "miscstruct.h"
285 #include "pixmapstr.h"
286 #include "privates.h"
287 #include "property.h"
288 #include "propertyst.h"
289 #include "ptrveloc.h"
291 #include "regionstr.h"
292 #include "registry.h"
293 #include "resource.h"
295 #include "screenint.h"
296 #include "scrnintstr.h"
297 #include "selection.h"
298 #include "servermd.h"
302 #include "validate.h"
304 #include "windowstr.h"
309 #include "xkbrules.h"
310 #include "xserver-properties.h"
318 ${CPP:-cpp} "$@" sdksyms.c
> /dev
/null ||
exit $?
319 ${CPP:-cpp} "$@" sdksyms.c |
${AWK:-awk} -v topdir
=$topdir '
323 print(" * These symbols are referenced to ensure they");
324 print(" * will be available in the X Server binary.");
326 printf("/* topdir=%s */\n", topdir);
327 print("_X_HIDDEN void *xorg_symbols[] = {");
329 printf("sdksyms.c:") > "sdksyms.dep";
332 # Process text after a include in a relative path or when the
333 # processed file has a basename matching $top_srcdir.
334 # Note that indexing starts at 1; 0 means no match, and there
336 sdk = $3 !~ /^"\// || index($3, topdir) == 2;
338 if (sdk && $3 ~ /\.h"$/) {
344 printf(" \\\n %s", $3) >> "sdksyms.dep";
355 # skip attribute, if any
356 while ($n ~ /^(__attribute__|__global)/ ||
357 # skip modifiers, if any
358 $n ~ /^\*?(unsigned|const|volatile|struct|_X_EXPORT)$/ ||
360 $n ~ /^[a-zA-Z0-9_]*\*$/)
363 # type specifier may not be set, as in
364 # extern _X_EXPORT unsigned name(...)
365 if ($n !~ /[^a-zA-Z0-9_]/)
368 # go back if we are at the parameter list already
369 if ($n ~ /^[(]([^*].*)?$/)
373 # extern _X_EXPORT type (* name[])(...)
374 if ($n ~ /^[^a-zA-Z0-9_]+$/)
378 # extern _X_EXPORT const name *const ...
379 if ($n ~ /^([^a-zA-Z0-9_]+)?const$/)
382 # actual name may be in the next line, as in
383 # extern _X_EXPORT type
384 # possibly ending with a *
386 if ($n == "" || $n ~ /^\*+$/) {
389 # indent may have inserted a blank link
394 # dont modify $0 or $n
397 # remove starting non word chars
398 sub(/^[^a-zA-Z0-9_]+/, "",symbol);
400 # remove from first non word to end of line
401 sub(/[^a-zA-Z0-9_].*/, "", symbol);
404 printf(" (void *) &%-50s /* %s:%s */\n", symbol ",", header, line);
415 print("") >> "sdksyms.dep";
420 cat _sdksyms.c
>> sdksyms.c
423 [ $?
!= 0 ] && exit $?