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
bdbab7b6
Commit
bdbab7b6
authored
Mar 29, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Use a table in get_header_name.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5a88f52f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
msg.c
dlls/webservices/msg.c
+13
-13
No files found.
dlls/webservices/msg.c
View file @
bdbab7b6
...
...
@@ -457,24 +457,24 @@ static HRESULT get_addr_namespace( WS_ADDRESSING_VERSION ver, WS_XML_STRING *str
static
const
WS_XML_STRING
*
get_header_name
(
WS_HEADER_TYPE
type
)
{
static
const
WS_XML_STRING
action
=
{
6
,
(
BYTE
*
)
"Action"
},
to
=
{
2
,
(
BYTE
*
)
"To"
};
static
const
WS_XML_STRING
msgid
=
{
9
,
(
BYTE
*
)
"MessageID"
},
relto
=
{
9
,
(
BYTE
*
)
"RelatesTo"
};
static
const
WS_XML_STRING
from
=
{
4
,
(
BYTE
*
)
"From"
},
replyto
=
{
7
,
(
BYTE
*
)
"ReplyTo"
};
static
const
WS_XML_STRING
faultto
=
{
7
,
(
BYTE
*
)
"FaultTo"
};
static
const
WS_XML_STRING
headers
[]
=
{
{
6
,
(
BYTE
*
)
"Action"
},
{
2
,
(
BYTE
*
)
"To"
},
{
9
,
(
BYTE
*
)
"MessageID"
},
{
9
,
(
BYTE
*
)
"RelatesTo"
},
{
4
,
(
BYTE
*
)
"From"
},
{
7
,
(
BYTE
*
)
"ReplyTo"
},
{
7
,
(
BYTE
*
)
"FaultTo"
},
};
switch
(
type
)
if
(
type
<
WS_ACTION_HEADER
||
type
>
WS_FAULT_TO_HEADER
)
{
case
WS_ACTION_HEADER
:
return
&
action
;
case
WS_TO_HEADER
:
return
&
to
;
case
WS_MESSAGE_ID_HEADER
:
return
&
msgid
;
case
WS_RELATES_TO_HEADER
:
return
&
relto
;
case
WS_FROM_HEADER
:
return
&
from
;
case
WS_REPLY_TO_HEADER
:
return
&
replyto
;
case
WS_FAULT_TO_HEADER
:
return
&
faultto
;
default:
ERR
(
"unknown type %u
\n
"
,
type
);
return
NULL
;
}
return
&
headers
[
type
-
1
];
}
static
HRESULT
write_headers
(
struct
msg
*
msg
,
const
WS_XML_STRING
*
ns_env
,
const
WS_XML_STRING
*
ns_addr
,
...
...
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