1 | print """
|
---|
2 | /** @file
|
---|
3 | * VBox OpenGL chromium functions header
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2008-2010 Oracle Corporation
|
---|
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 | """
|
---|
18 | # Copyright (c) 2001, Stanford University
|
---|
19 | # All rights reserved.
|
---|
20 | #
|
---|
21 | # See the file LICENSE.txt for information on redistributing this software.
|
---|
22 |
|
---|
23 | import sys
|
---|
24 |
|
---|
25 | import apiutil
|
---|
26 |
|
---|
27 | apiutil.CopyrightC()
|
---|
28 |
|
---|
29 | print """
|
---|
30 | /* DO NOT EDIT - THIS FILE GENERATED BY THE cr_gl.py SCRIPT */
|
---|
31 | #ifndef __CR_GL_H__
|
---|
32 | #define __CR_GL_H__
|
---|
33 |
|
---|
34 | #include "chromium.h"
|
---|
35 | #include "cr_string.h"
|
---|
36 | #include "cr_version.h"
|
---|
37 | #include "stub.h"
|
---|
38 |
|
---|
39 | #ifdef WINDOWS
|
---|
40 | #pragma warning( disable: 4055 )
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | """
|
---|
44 |
|
---|
45 |
|
---|
46 | # Extern-like declarations
|
---|
47 | keys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
48 | for func_name in keys:
|
---|
49 | if "Chromium" == apiutil.Category(func_name):
|
---|
50 | continue
|
---|
51 | if "VBox" == apiutil.Category(func_name):
|
---|
52 | continue
|
---|
53 | if func_name == "BoundsInfoCR":
|
---|
54 | continue
|
---|
55 | if "GL_chromium" == apiutil.Category(func_name):
|
---|
56 | pass #continue
|
---|
57 |
|
---|
58 | return_type = apiutil.ReturnType(func_name)
|
---|
59 | params = apiutil.Parameters(func_name)
|
---|
60 |
|
---|
61 | print "extern %s cr_gl%s( %s );" % (return_type, func_name,
|
---|
62 | apiutil.MakeDeclarationString( params ))
|
---|
63 |
|
---|
64 | print "#endif /* __CR_GL_H__ */"
|
---|