summaryrefslogtreecommitdiffstats
path: root/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_header.py
blob: cb42c22a02c50e0543e5a17f1ba5d53be94b671b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.

from __future__ import print_function
import sys;
import pickle;
import types;
import string;
import re;

sys.path.append( "../opengl_stub" )

import stub_common;

parsed_file = open( "../glapi_parser/gl_header.parsed", "rb" )
gl_mapping = pickle.load( parsed_file )

stub_common.CopyrightC()

print("""#ifndef CR_UNPACKFUNCTIONS_H
#define CR_UNPACKFUNCTIONS_H
""")

for func_name in sorted(gl_mapping.keys()):
	( return_type, arg_names, arg_types ) = gl_mapping[func_name]
	print('void crUnpack%s();' %( func_name ))
print('void crUnpackExtend();')
print('\n#endif /* CR_UNPACKFUNCTIONS_H */')