Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a5ff173c
Commit
a5ff173c
authored
Aug 15, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Aug 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Generate proxy code for user marshalled types.
parent
c526c980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
proxy.c
tools/widl/proxy.c
+49
-0
No files found.
tools/widl/proxy.c
View file @
a5ff173c
...
...
@@ -232,6 +232,34 @@ int cant_be_null(var_t *v)
return
1
;
/* Default is RPC_FC_RP. */
}
static
int
is_user_derived
(
var_t
*
v
)
{
const
attr_t
*
attrs
=
v
->
attrs
;
const
type_t
*
type
=
v
->
type
;
if
(
!
attrs
&&
type
)
{
attrs
=
type
->
attrs
;
type
=
type
->
ref
;
}
while
(
attrs
)
{
if
(
is_attr
(
attrs
,
ATTR_WIREMARSHAL
))
return
1
;
if
(
type
)
{
attrs
=
type
->
attrs
;
type
=
type
->
ref
;
}
else
attrs
=
NULL
;
}
return
0
;
}
static
void
proxy_check_pointers
(
var_t
*
arg
)
{
END_OF_LIST
(
arg
);
...
...
@@ -263,6 +291,13 @@ static void marshall_size_arg( var_t *arg )
return
;
}
if
(
is_user_derived
(
arg
))
{
print_proxy
(
"NdrUserMarshalBufferSize( &_StubMsg, (unsigned char*)%s, "
,
arg
->
name
);
fprintf
(
proxy
,
"&__MIDL_TypeFormatString.Format[%d] );
\n
"
,
index
);
return
;
}
switch
(
type
->
type
)
{
case
RPC_FC_BYTE
:
...
...
@@ -355,6 +390,13 @@ static void marshall_copy_arg( var_t *arg )
return
;
}
if
(
is_user_derived
(
arg
))
{
print_proxy
(
"NdrUserMarshalMarshall( &_StubMsg, (unsigned char*)%s, "
,
arg
->
name
);
fprintf
(
proxy
,
"&__MIDL_TypeFormatString.Format[%d] );
\n
"
,
index
);
return
;
}
switch
(
type
->
type
)
{
case
RPC_FC_BYTE
:
...
...
@@ -454,6 +496,13 @@ static void unmarshall_copy_arg( var_t *arg )
return
;
}
if
(
is_user_derived
(
arg
))
{
print_proxy
(
"NdrUserMarshalUnmarshall( &_StubMsg, (unsigned char**)&%s, "
,
arg
->
name
);
fprintf
(
proxy
,
"&__MIDL_TypeFormatString.Format[%d], 0 );
\n
"
,
index
);
return
;
}
switch
(
type
->
type
)
{
case
RPC_FC_BYTE
:
...
...
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