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
89a1dade
Commit
89a1dade
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: Support async interfaces proxy.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a8dbbb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
proxy.c
tools/widl/proxy.c
+16
-3
typegen.c
tools/widl/typegen.c
+3
-0
No files found.
tools/widl/proxy.c
View file @
89a1dade
...
...
@@ -736,7 +736,9 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
print_proxy
(
"},
\n
"
);
print_proxy
(
"{
\n
"
);
indent
++
;
print_proxy
(
"CStdStubBuffer_%s
\n
"
,
need_delegation_indirect
(
iface
)
?
"DELEGATING_METHODS"
:
"METHODS"
);
print_proxy
(
"%s_%s
\n
"
,
iface
->
details
.
iface
->
async_iface
==
iface
?
"CStdAsyncStubBuffer"
:
"CStdStubBuffer"
,
need_delegation_indirect
(
iface
)
?
"DELEGATING_METHODS"
:
"METHODS"
);
indent
--
;
print_proxy
(
"}
\n
"
);
indent
--
;
...
...
@@ -832,8 +834,13 @@ static void write_proxy_stmts(const statement_list_t *stmts, unsigned int *proc_
{
if
(
stmt
->
type
==
STMT_TYPE
&&
type_get_type
(
stmt
->
u
.
type
)
==
TYPE_INTERFACE
)
{
if
(
need_proxy
(
stmt
->
u
.
type
))
write_proxy
(
stmt
->
u
.
type
,
proc_offset
);
type_t
*
iface
=
stmt
->
u
.
type
;
if
(
need_proxy
(
iface
))
{
write_proxy
(
iface
,
proc_offset
);
if
(
iface
->
details
.
iface
->
async_iface
)
write_proxy
(
iface
->
details
.
iface
->
async_iface
,
proc_offset
);
}
}
}
}
...
...
@@ -861,6 +868,12 @@ static void build_iface_list( const statement_list_t *stmts, type_t **ifaces[],
{
*
ifaces
=
xrealloc
(
*
ifaces
,
(
*
count
+
1
)
*
sizeof
(
**
ifaces
)
);
(
*
ifaces
)[(
*
count
)
++
]
=
iface
;
if
(
iface
->
details
.
iface
->
async_iface
)
{
iface
=
iface
->
details
.
iface
->
async_iface
;
*
ifaces
=
xrealloc
(
*
ifaces
,
(
*
count
+
1
)
*
sizeof
(
**
ifaces
)
);
(
*
ifaces
)[(
*
count
)
++
]
=
iface
;
}
}
}
}
...
...
tools/widl/typegen.c
View file @
89a1dade
...
...
@@ -1381,6 +1381,7 @@ static void write_proc_func_header( FILE *file, int indent, const type_t *iface,
if
(
is_attr
(
func
->
attrs
,
ATTR_NOTIFY
))
ext_flags
|=
0x08
;
/* HasNotify */
if
(
is_attr
(
func
->
attrs
,
ATTR_NOTIFYFLAG
))
ext_flags
|=
0x10
;
/* HasNotify2 */
if
(
iface
==
iface
->
details
.
iface
->
async_iface
)
oi2_flags
|=
0x20
;
size
=
get_function_buffer_size
(
func
,
PASS_IN
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%x),
\t
/* client buffer = %u */
\n
"
,
size
,
size
);
...
...
@@ -1479,6 +1480,8 @@ static void for_each_iface(const statement_list_t *stmts,
iface
=
stmt
->
u
.
type
;
if
(
!
pred
(
iface
))
continue
;
proc
(
iface
,
file
,
indent
,
offset
);
if
(
iface
->
details
.
iface
->
async_iface
)
proc
(
iface
->
details
.
iface
->
async_iface
,
file
,
indent
,
offset
);
}
}
...
...
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