Last change
on this file since 76585 was 69390, checked in by vboxsync, 7 years ago |
HostServices/SharedOpenGL: scm updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
1.2 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 | from __future__ import print_function
|
---|
7 | import sys
|
---|
8 |
|
---|
9 | import apiutil
|
---|
10 |
|
---|
11 | apiutil.CopyrightC()
|
---|
12 |
|
---|
13 | print("""
|
---|
14 | /* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY server_dispatch_header.py SCRIPT */
|
---|
15 | #ifndef SERVER_DISPATCH_HEADER
|
---|
16 | #define SERVER_DISPATCH_HEADER
|
---|
17 |
|
---|
18 | #ifdef WINDOWS
|
---|
19 | #define SERVER_DISPATCH_APIENTRY __stdcall
|
---|
20 | #else
|
---|
21 | #define SERVER_DISPATCH_APIENTRY
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include "chromium.h"
|
---|
25 | #include "state/cr_statetypes.h"
|
---|
26 |
|
---|
27 | #if defined(__cplusplus)
|
---|
28 | extern "C" {
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | """)
|
---|
32 |
|
---|
33 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
34 |
|
---|
35 | for func_name in keys:
|
---|
36 | if ("get" in apiutil.Properties(func_name) or
|
---|
37 | apiutil.FindSpecial( "server", func_name ) or
|
---|
38 | apiutil.FindSpecial( sys.argv[1]+"/../state_tracker/state", func_name )):
|
---|
39 |
|
---|
40 | params = apiutil.Parameters(func_name)
|
---|
41 | return_type = apiutil.ReturnType(func_name)
|
---|
42 |
|
---|
43 | print('%s SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString( params )))
|
---|
44 |
|
---|
45 | print("""
|
---|
46 | #if defined(__cplusplus)
|
---|
47 | }
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #endif /* SERVER_DISPATCH_HEADER */
|
---|
51 | """)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.