VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_dispatch_header.py@ 40296

最後變更 在這個檔案從40296是 15532,由 vboxsync 提交於 16 年 前

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.1 KB
 
1# Copyright (c) 2001, Stanford University
2# All rights reserved.
3#
4# See the file LICENSE.txt for information on redistributing this software.
5
6import sys
7
8import apiutil
9
10apiutil.CopyrightC()
11
12print """
13/* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY server_dispatch_header.py SCRIPT */
14#ifndef SERVER_DISPATCH_HEADER
15#define SERVER_DISPATCH_HEADER
16
17#ifdef WINDOWS
18#define SERVER_DISPATCH_APIENTRY __stdcall
19#else
20#define SERVER_DISPATCH_APIENTRY
21#endif
22
23#include "chromium.h"
24#include "state/cr_statetypes.h"
25"""
26
27keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
28
29for func_name in keys:
30 if ("get" in apiutil.Properties(func_name) or
31 apiutil.FindSpecial( "server", func_name ) or
32 apiutil.FindSpecial( sys.argv[1]+"/../state_tracker/state", func_name )):
33
34 params = apiutil.Parameters(func_name)
35 return_type = apiutil.ReturnType(func_name)
36
37 print '%s SERVER_DISPATCH_APIENTRY crServerDispatch%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString( params ))
38
39print '#endif /* SERVER_DISPATCH_HEADER */'
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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