1 /*****************************************************************************
2 * symbols.c : Extra file used to force linking with some shared symbols
3 *****************************************************************************
4 * Copyright (C) 2002 VideoLAN
5 * $Id: symbols.c,v 1.2 2002/06/01 12:32:01 sam Exp $
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
25 * Rationale for this file:
27 * On certain architectures, such as IA64 or HPPA, it is forbidden to link
28 * static objects with objects which have relocation information. This
29 * basically means that if you are building libfoo.so, you cannot add libbar.a
30 * to the link process. To bypass this restriction, we link the main app with
31 * libbar.a, but then we need to tell the compiler that we will need symbols
32 * from libbar.a, this is why this file is here.
33 *****************************************************************************/
35 /*****************************************************************************
37 *****************************************************************************/
41 #include <X11/Xutil.h>
42 #include <X11/keysym.h>
43 #include <X11/extensions/XShm.h>
44 #include <X11/extensions/Xv.h>
45 #include <X11/extensions/Xvlib.h>
46 #include <X11/extensions/dpms.h>
47 #include <X11/extensions/xf86dga.h>
48 #include <X11/extensions/xf86dgastr.h>
49 #include <X11/extensions/xf86vmode.h>
50 #include <X11/extensions/xf86vmstr.h>
52 /*****************************************************************************
54 *****************************************************************************/
55 void _Use ( int, ... );
58 /*****************************************************************************
60 *****************************************************************************/
61 void _Use( int i_dummy, ... )
66 /*****************************************************************************
68 *****************************************************************************/
71 /* for i in Xxf86dga Xxf86vm Xv
72 * do nm /usr/X11R6/lib/lib$i.a | grep ' T ' | awk '{ print $3 }'
75 _Use( 0, XF86DGADirectVideo, XF86DGADirectVideoLL, XF86DGAForkApp,
76 XF86DGAGetVidPage, XF86DGAGetVideo, XF86DGAGetVideoLL,
77 XF86DGAGetViewPortSize, XF86DGAInstallColormap,
78 XF86DGAQueryDirectVideo, XF86DGAQueryExtension,
79 XF86DGAQueryVersion, XF86DGASetVidPage, XF86DGASetViewPort,
80 XF86DGAViewPortChanged );
82 _Use( 0, XDGAChangePixmapMode, XDGACloseFramebuffer, XDGACopyArea,
83 XDGACopyTransparentArea, XDGACreateColormap, XDGAFillRectangle,
84 /* XDGAGetMappedMemory, */ XDGAGetViewportStatus,
85 XDGAInstallColormap, XDGAKeyEventToXKeyEvent,
86 /* XDGAMapFramebuffer, */ XDGAOpenFramebuffer, XDGAQueryExtension,
87 XDGAQueryModes, XDGAQueryVersion, XDGASelectInput,
88 XDGASetClientVersion, XDGASetMode, XDGASetViewport, XDGASync
89 /* XDGAUnmapFramebuffer, */ /* xdga_find_display */ );
91 _Use( 0, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine,
92 XF86VidModeGetAllModeLines, XF86VidModeGetDotClocks,
93 XF86VidModeGetGamma, XF86VidModeGetGammaRamp,
94 XF86VidModeGetGammaRampSize, XF86VidModeGetModeLine,
95 XF86VidModeGetMonitor, XF86VidModeGetViewPort,
96 XF86VidModeLockModeSwitch, XF86VidModeModModeLine,
97 XF86VidModeQueryExtension, XF86VidModeQueryVersion,
98 XF86VidModeSetClientVersion, XF86VidModeSetGamma,
99 XF86VidModeSetGammaRamp, XF86VidModeSetViewPort,
100 XF86VidModeSwitchMode, XF86VidModeSwitchToMode,
101 XF86VidModeValidateModeLine );
103 _Use( 0, XvCreateImage, XvFreeAdaptorInfo, XvFreeEncodingInfo,
104 XvGetPortAttribute, XvGetStill, XvGetVideo, XvGrabPort,
105 XvListImageFormats, XvPutImage, XvPutStill, XvPutVideo,
106 XvQueryAdaptors, XvQueryBestSize, XvQueryEncodings,
107 XvQueryExtension, XvQueryPortAttributes, XvSelectPortNotify,
108 XvSelectVideoNotify, XvSetPortAttribute, XvShmCreateImage,
109 XvShmPutImage, XvStopVideo, XvUngrabPort );