1 | print """
|
---|
2 | /** @file
|
---|
3 | * VBox OpenGL chromium functions header
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | * additional information or have any questions.
|
---|
20 | */
|
---|
21 | """
|
---|
22 | # Copyright (c) 2001, Stanford University
|
---|
23 | # All rights reserved.
|
---|
24 | #
|
---|
25 | # See the file LICENSE.txt for information on redistributing this software.
|
---|
26 |
|
---|
27 | import sys
|
---|
28 |
|
---|
29 | import apiutil
|
---|
30 |
|
---|
31 | apiutil.CopyrightC()
|
---|
32 |
|
---|
33 | print """
|
---|
34 | /* DO NOT EDIT - THIS FILE GENERATED BY THE cr_gl.py SCRIPT */
|
---|
35 | #ifndef __CR_GL_H__
|
---|
36 | #define __CR_GL_H__
|
---|
37 |
|
---|
38 | #include "chromium.h"
|
---|
39 | #include "cr_string.h"
|
---|
40 | #include "cr_version.h"
|
---|
41 | #include "stub.h"
|
---|
42 |
|
---|
43 | #ifdef WINDOWS
|
---|
44 | #pragma warning( disable: 4055 )
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | """
|
---|
48 |
|
---|
49 |
|
---|
50 | # Extern-like declarations
|
---|
51 | keys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
52 | for func_name in keys:
|
---|
53 | if "Chromium" == apiutil.Category(func_name):
|
---|
54 | continue
|
---|
55 | if "VBox" == apiutil.Category(func_name):
|
---|
56 | continue
|
---|
57 | if func_name == "BoundsInfoCR":
|
---|
58 | continue
|
---|
59 | if "GL_chromium" == apiutil.Category(func_name):
|
---|
60 | pass #continue
|
---|
61 |
|
---|
62 | return_type = apiutil.ReturnType(func_name)
|
---|
63 | params = apiutil.Parameters(func_name)
|
---|
64 |
|
---|
65 | print "extern %s cr_gl%s( %s );" % (return_type, func_name,
|
---|
66 | apiutil.MakeDeclarationString( params ))
|
---|
67 |
|
---|
68 | print "#endif /* __CR_GL_H__ */"
|
---|