VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_funcs.py@ 36300

Last change on this file since 36300 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# Copyright (c) 2001, Stanford University
2# All rights reserved.
3#
4# See the file LICENSE.txt for information on redistributing this software.
5
6
7import sys
8
9sys.path.append( "../glapi_parser" )
10import apiutil
11
12
13apiutil.CopyrightC()
14
15print """
16/* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY state_funcs.py SCRIPT */
17#ifndef CR_STATE_FUNCS_H
18#define CR_STATE_FUNCS_H
19
20#include "chromium.h"
21#include "cr_error.h"
22
23#include <iprt/cdefs.h>
24
25#if defined(WINDOWS)
26#define STATE_APIENTRY __stdcall
27#else
28#define STATE_APIENTRY
29#endif
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35#define STATE_UNUSED(x) ((void)x)"""
36
37
38
39for func_name in apiutil.AllSpecials( "state" ):
40 return_type = apiutil.ReturnType(func_name)
41 params = apiutil.Parameters(func_name)
42 print 'DECLEXPORT(%s) STATE_APIENTRY crState%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))
43
44for func_name in apiutil.AllSpecials( "state_feedback" ):
45 return_type = apiutil.ReturnType(func_name)
46 params = apiutil.Parameters(func_name)
47 print 'DECLEXPORT(%s) STATE_APIENTRY crStateFeedback%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))
48
49for func_name in apiutil.AllSpecials( "state_select" ):
50 return_type = apiutil.ReturnType(func_name)
51 params = apiutil.Parameters(func_name)
52 print 'DECLEXPORT(%s) STATE_APIENTRY crStateSelect%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))
53
54
55print """
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* CR_STATE_FUNCS_H */
61"""
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