VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/cr_gl.py@ 60337

Last change on this file since 60337 was 56294, checked in by vboxsync, 10 years ago

Additions/common,Additions/os2: Updated (C) year.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1print """
2/** @file
3 * VBox OpenGL chromium functions header
4 */
5
6/*
7 * Copyright (C) 2008-2015 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
23import sys
24
25import apiutil
26
27apiutil.CopyrightC()
28
29print """
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
47keys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
48for 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
64print "#endif /* __CR_GL_H__ */"
Note: See TracBrowser for help on using the repository browser.

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