Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
824d5135
Commit
824d5135
authored
Nov 07, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Generate async interface table.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89a1dade
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
proxy.c
tools/widl/proxy.c
+23
-2
No files found.
tools/widl/proxy.c
View file @
824d5135
...
...
@@ -895,6 +895,7 @@ static void write_proxy_routines(const statement_list_t *stmts)
unsigned
int
proc_offset
=
0
;
char
*
file_id
=
proxy_token
;
int
i
,
count
,
have_baseiid
=
0
;
unsigned
int
table_version
;
type_t
**
interfaces
;
const
type_t
*
delegate_to
;
...
...
@@ -1006,6 +1007,26 @@ static void write_proxy_routines(const statement_list_t *stmts)
fprintf
(
proxy
,
"}
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
table_version
=
get_stub_mode
()
==
MODE_Oif
?
2
:
1
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
interfaces
[
i
]
->
details
.
iface
->
async_iface
!=
interfaces
[
i
])
continue
;
if
(
table_version
!=
6
)
{
fprintf
(
proxy
,
"static const IID *_AsyncInterfaceTable[] =
\n
"
);
fprintf
(
proxy
,
"{
\n
"
);
table_version
=
6
;
}
fprintf
(
proxy
,
" &IID_%s,
\n
"
,
interfaces
[
i
]
->
name
);
fprintf
(
proxy
,
" (IID*)(LONG_PTR)-1,
\n
"
);
}
if
(
table_version
==
6
)
{
fprintf
(
proxy
,
" 0
\n
"
);
fprintf
(
proxy
,
"};
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
}
fprintf
(
proxy
,
"const ExtendedProxyFileInfo %s_ProxyFileInfo DECLSPEC_HIDDEN =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\n
"
);
fprintf
(
proxy
,
" (const PCInterfaceProxyVtblList*)_%s_ProxyVtblList,
\n
"
,
file_id
);
...
...
@@ -1015,8 +1036,8 @@ static void write_proxy_routines(const statement_list_t *stmts)
else
fprintf
(
proxy
,
" 0,
\n
"
);
fprintf
(
proxy
,
" _%s_IID_Lookup,
\n
"
,
file_id
);
fprintf
(
proxy
,
" %d,
\n
"
,
count
);
fprintf
(
proxy
,
" %
d,
\n
"
,
get_stub_mode
()
==
MODE_Oif
?
2
:
1
);
fprintf
(
proxy
,
"
0,
\n
"
);
fprintf
(
proxy
,
" %
u,
\n
"
,
table_version
);
fprintf
(
proxy
,
"
%s,
\n
"
,
table_version
==
6
?
"_AsyncInterfaceTable"
:
"0
"
);
fprintf
(
proxy
,
" 0,
\n
"
);
fprintf
(
proxy
,
" 0,
\n
"
);
fprintf
(
proxy
,
" 0
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment