VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/sym.h

最後變更 在這個檔案是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.8 KB
 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/sym.h,v 1.6 2000/10/24 00:06:55 anderson Exp $ */
2
3/*
4 *
5 * Copyright 1995,96 by Metro Link, Inc.
6 *
7 * Permission to use, copy, modify, distribute, and sell this software and its
8 * documentation for any purpose is hereby granted without fee, provided that
9 * the above copyright notice appear in all copies and that both that
10 * copyright notice and this permission notice appear in supporting
11 * documentation, and that the name of Metro Link, Inc. not be used in
12 * advertising or publicity pertaining to distribution of the software without
13 * specific, written prior permission. Metro Link, Inc. makes no
14 * representations about the suitability of this software for any purpose.
15 * It is provided "as is" without express or implied warranty.
16 *
17 * METRO LINK, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 * EVENT SHALL METRO LINK, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 * PERFORMANCE OF THIS SOFTWARE.
24 */
25
26#ifdef HAVE_XORG_CONFIG_H
27#include <xorg-config.h>
28#endif
29
30#ifndef _SYM_H
31#define _SYM_H
32
33/*
34 * This structure is used to pass in symbol information that is being
35 * added to the symbol table.
36 */
37
38typedef void (*funcptr) (void);
39
40typedef struct {
41 char *symName;
42 funcptr offset;
43} LOOKUP;
44
45#define SYMFUNC( func ) { #func, (funcptr)&func },
46#define SYMFUNCALIAS( name, func ) { name, (funcptr)&func },
47#define SYMVAR( var ) { #var, (funcptr)&var },
48#define SYMVARALIAS( name, var ) { name, (funcptr)&var },
49
50#endif /* _SYM_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette