include: Add missing Web Services declarations.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-06-15 09:21:22 +02:00 committed by Alexandre Julliard
parent dbbcd290fd
commit a684e0bc61
1 changed files with 196 additions and 0 deletions

View File

@ -66,6 +66,13 @@ typedef struct _WS_HTTPS_URL WS_HTTPS_URL;
typedef struct _WS_NETTCP_URL WS_NETTCP_URL; typedef struct _WS_NETTCP_URL WS_NETTCP_URL;
typedef struct _WS_SOAPUDP_URL WS_SOAPUDP_URL; typedef struct _WS_SOAPUDP_URL WS_SOAPUDP_URL;
typedef struct _WS_NETPIPE_URL WS_NETPIPE_URL; typedef struct _WS_NETPIPE_URL WS_NETPIPE_URL;
typedef struct _WS_CUSTOM_CHANNEL_CALLBACKS WS_CUSTOM_CHANNEL_CALLBACKS;
typedef struct _WS_CHANNEL_ENCODER WS_CHANNEL_ENCODER;
typedef struct _WS_CHANNEL_DECODER WS_CHANNEL_DECODER;
typedef struct _WS_CUSTOM_HTTP_PROXY WS_CUSTOM_HTTP_PROXY;
typedef struct _WS_HTTP_MESSAGE_MAPPING WS_HTTP_MESSAGE_MAPPING;
typedef struct _WS_HTTP_HEADER_MAPPING WS_HTTP_HEADER_MAPPING;
typedef struct _WS_HTTP_REDIRECT_CALLBACK_CONTEXT WS_HTTP_REDIRECT_CALLBACK_CONTEXT;
struct _WS_STRUCT_DESCRIPTION; struct _WS_STRUCT_DESCRIPTION;
struct _WS_XML_STRING; struct _WS_XML_STRING;
@ -248,6 +255,9 @@ typedef struct _WS_ASYNC_CONTEXT {
typedef HRESULT (CALLBACK *WS_READ_CALLBACK) typedef HRESULT (CALLBACK *WS_READ_CALLBACK)
(void*, void*, ULONG, ULONG*, const WS_ASYNC_CONTEXT*, WS_ERROR*); (void*, void*, ULONG, ULONG*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_WRITE_CALLBACK)
(void*, const WS_BYTES*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef struct _WS_XML_READER_STREAM_INPUT { typedef struct _WS_XML_READER_STREAM_INPUT {
WS_XML_READER_INPUT input; WS_XML_READER_INPUT input;
WS_READ_CALLBACK readCallback; WS_READ_CALLBACK readCallback;
@ -1072,6 +1082,190 @@ struct _WS_NETPIPE_URL {
WS_STRING fragment; WS_STRING fragment;
}; };
typedef enum
{
WS_IP_VERSION_4 = 1,
WS_IP_VERSION_6 = 2,
WS_IP_VERSION_AUTO = 3
} WS_IP_VERSION;
typedef enum
{
WS_BUFFERED_TRANSFER_MODE = 0x0,
WS_STREAMED_INPUT_TRANSFER_MODE = 0x1,
WS_STREAMED_OUTPUT_TRANSFER_MODE = 0x2,
WS_STREAMED_TRANSFER_MODE = (WS_STREAMED_INPUT_TRANSFER_MODE|WS_STREAMED_OUTPUT_TRANSFER_MODE)
} WS_TRANSFER_MODE;
typedef HRESULT (CALLBACK *WS_CREATE_CHANNEL_CALLBACK)
(WS_CHANNEL_TYPE, const void*, ULONG, void**, WS_ERROR*);
typedef void (CALLBACK *WS_FREE_CHANNEL_CALLBACK)
(void*);
typedef HRESULT (CALLBACK *WS_RESET_CHANNEL_CALLBACK)
(void*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_OPEN_CHANNEL_CALLBACK)
(void*, const WS_ENDPOINT_ADDRESS*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_CLOSE_CHANNEL_CALLBACK)
(void*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_ABORT_CHANNEL_CALLBACK)
(void*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_GET_CHANNEL_PROPERTY_CALLBACK)
(void*, WS_CHANNEL_PROPERTY_ID, void*, ULONG, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_SET_CHANNEL_PROPERTY_CALLBACK)
(void*, WS_CHANNEL_PROPERTY_ID, const void*, ULONG, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_WRITE_MESSAGE_START_CALLBACK)
(void*, WS_MESSAGE*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_WRITE_MESSAGE_END_CALLBACK)
(void*, WS_MESSAGE*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_READ_MESSAGE_START_CALLBACK)
(void*, WS_MESSAGE*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_READ_MESSAGE_END_CALLBACK)
(void*, WS_MESSAGE*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_ABANDON_MESSAGE_CALLBACK)
(void*, WS_MESSAGE*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK)
(void*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
struct _WS_CUSTOM_CHANNEL_CALLBACKS
{
WS_CREATE_CHANNEL_CALLBACK createChannelCallback;
WS_FREE_CHANNEL_CALLBACK freeChannelCallback;
WS_RESET_CHANNEL_CALLBACK resetChannelCallback;
WS_OPEN_CHANNEL_CALLBACK openChannelCallback;
WS_CLOSE_CHANNEL_CALLBACK closeChannelCallback;
WS_ABORT_CHANNEL_CALLBACK abortChannelCallback;
WS_GET_CHANNEL_PROPERTY_CALLBACK getChannelPropertyCallback;
WS_SET_CHANNEL_PROPERTY_CALLBACK setChannelPropertyCallback;
WS_WRITE_MESSAGE_START_CALLBACK writeMessageStartCallback;
WS_WRITE_MESSAGE_END_CALLBACK writeMessageEndCallback;
WS_READ_MESSAGE_START_CALLBACK readMessageStartCallback;
WS_READ_MESSAGE_END_CALLBACK readMessageEndCallback;
WS_ABANDON_MESSAGE_CALLBACK abandonMessageCallback;
WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK shutdownSessionChannelCallback;
};
typedef HRESULT (CALLBACK *WS_CREATE_ENCODER_CALLBACK)
(void*, WS_WRITE_CALLBACK, void*, void**, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_ENCODER_GET_CONTENT_TYPE_CALLBACK)
(void*, const WS_STRING*, WS_STRING*, WS_STRING*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_ENCODER_START_CALLBACK)
(void*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_ENCODER_ENCODE_CALLBACK)
(void*, const WS_BYTES*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_ENCODER_END_CALLBACK)
(void*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef void (CALLBACK *WS_FREE_ENCODER_CALLBACK)
(void*);
struct _WS_CHANNEL_ENCODER
{
void *createContext;
WS_CREATE_ENCODER_CALLBACK createEncoderCallback;
WS_ENCODER_GET_CONTENT_TYPE_CALLBACK encoderGetContentTypeCallback;
WS_ENCODER_START_CALLBACK encoderStartCallback;
WS_ENCODER_ENCODE_CALLBACK encoderEncodeCallback;
WS_ENCODER_END_CALLBACK encoderEndCallback;
WS_FREE_ENCODER_CALLBACK freeEncoderCallback;
};
typedef HRESULT (CALLBACK *WS_CREATE_DECODER_CALLBACK)
(void*, WS_READ_CALLBACK, void*, void**, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_DECODER_GET_CONTENT_TYPE_CALLBACK)
(void*, const WS_STRING*, const WS_STRING*, WS_STRING*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_DECODER_START_CALLBACK)
(void*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_DECODER_DECODE_CALLBACK)
(void*, void*, ULONG, ULONG*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef HRESULT (CALLBACK *WS_DECODER_END_CALLBACK)
(void*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
typedef void (CALLBACK *WS_FREE_DECODER_CALLBACK)
(void*);
struct _WS_CHANNEL_DECODER
{
void *createContext;
WS_CREATE_DECODER_CALLBACK createDecoderCallback;
WS_DECODER_GET_CONTENT_TYPE_CALLBACK decoderGetContentTypeCallback;
WS_DECODER_START_CALLBACK decoderStartCallback;
WS_DECODER_DECODE_CALLBACK decoderDecodeCallback;
WS_DECODER_END_CALLBACK decoderEndCallback;
WS_FREE_DECODER_CALLBACK freeDecoderCallback;
};
typedef enum
{
WS_PROTECTION_LEVEL_NONE = 1,
WS_PROTECTION_LEVEL_SIGN = 2,
WS_PROTECTION_LEVEL_SIGN_AND_ENCRYPT = 3
} WS_PROTECTION_LEVEL;
typedef enum
{
WS_MANUAL_COOKIE_MODE = 1,
WS_AUTO_COOKIE_MODE = 2
} WS_COOKIE_MODE;
typedef enum
{
WS_HTTP_PROXY_SETTING_MODE_AUTO = 0x1,
WS_HTTP_PROXY_SETTING_MODE_NONE = 0x2,
WS_HTTP_PROXY_SETTING_MODE_CUSTOM = 0x3
} WS_HTTP_PROXY_SETTING_MODE;
struct _WS_CUSTOM_HTTP_PROXY
{
WS_STRING servers;
WS_STRING bypass;
};
struct _WS_HTTP_HEADER_MAPPING
{
WS_XML_STRING headerName;
ULONG headerMappingOptions;
};
struct _WS_HTTP_MESSAGE_MAPPING
{
ULONG requestMappingOptions;
ULONG responseMappingOptions;
WS_HTTP_HEADER_MAPPING **requestHeaderMappings;
ULONG requestHeaderMappingCount;
WS_HTTP_HEADER_MAPPING **responseHeaderMappings;
ULONG responseHeaderMappingCount;
};
typedef HRESULT (CALLBACK *WS_HTTP_REDIRECT_CALLBACK)
(void*, const WS_STRING*, const WS_STRING*);
struct _WS_HTTP_REDIRECT_CALLBACK_CONTEXT
{
WS_HTTP_REDIRECT_CALLBACK callback;
void *state;
};
HRESULT WINAPI WsAlloc(WS_HEAP*, SIZE_T, void**, WS_ERROR*); HRESULT WINAPI WsAlloc(WS_HEAP*, SIZE_T, void**, WS_ERROR*);
HRESULT WINAPI WsCall(WS_SERVICE_PROXY*, const WS_OPERATION_DESCRIPTION*, const void**, HRESULT WINAPI WsCall(WS_SERVICE_PROXY*, const WS_OPERATION_DESCRIPTION*, const void**,
WS_HEAP*, const WS_CALL_PROPERTY*, const ULONG, const WS_ASYNC_CONTEXT*, WS_HEAP*, const WS_CALL_PROPERTY*, const ULONG, const WS_ASYNC_CONTEXT*,
@ -1117,6 +1311,7 @@ HRESULT WINAPI WsGetChannelProperty(WS_CHANNEL*, WS_CHANNEL_PROPERTY_ID, void*,
HRESULT WINAPI WsGetErrorProperty(WS_ERROR*, WS_ERROR_PROPERTY_ID, void*, ULONG); HRESULT WINAPI WsGetErrorProperty(WS_ERROR*, WS_ERROR_PROPERTY_ID, void*, ULONG);
HRESULT WINAPI WsGetErrorString(WS_ERROR*, ULONG, WS_STRING*); HRESULT WINAPI WsGetErrorString(WS_ERROR*, ULONG, WS_STRING*);
HRESULT WINAPI WsGetHeapProperty(WS_HEAP*, WS_HEAP_PROPERTY_ID, void*, ULONG, WS_ERROR*); HRESULT WINAPI WsGetHeapProperty(WS_HEAP*, WS_HEAP_PROPERTY_ID, void*, ULONG, WS_ERROR*);
HRESULT WINAPI WsGetMessageProperty(WS_MESSAGE*, WS_MESSAGE_PROPERTY_ID, void*, ULONG, WS_ERROR*);
HRESULT WINAPI WsGetNamespaceFromPrefix(WS_XML_READER*, const WS_XML_STRING*, BOOL, HRESULT WINAPI WsGetNamespaceFromPrefix(WS_XML_READER*, const WS_XML_STRING*, BOOL,
const WS_XML_STRING**, WS_ERROR*); const WS_XML_STRING**, WS_ERROR*);
HRESULT WINAPI WsGetPrefixFromNamespace(WS_XML_WRITER*, const WS_XML_STRING*, BOOL, HRESULT WINAPI WsGetPrefixFromNamespace(WS_XML_WRITER*, const WS_XML_STRING*, BOOL,
@ -1159,6 +1354,7 @@ HRESULT WINAPI WsSetInput(WS_XML_READER*, const WS_XML_READER_ENCODING*, const W
const WS_XML_READER_PROPERTY*, ULONG, WS_ERROR*); const WS_XML_READER_PROPERTY*, ULONG, WS_ERROR*);
HRESULT WINAPI WsSetInputToBuffer(WS_XML_READER*, WS_XML_BUFFER*, const WS_XML_READER_PROPERTY*, HRESULT WINAPI WsSetInputToBuffer(WS_XML_READER*, WS_XML_BUFFER*, const WS_XML_READER_PROPERTY*,
ULONG, WS_ERROR*); ULONG, WS_ERROR*);
HRESULT WINAPI WsSetMessageProperty(WS_MESSAGE*, WS_MESSAGE_PROPERTY_ID, const void*, ULONG, WS_ERROR*);
HRESULT WINAPI WsSetOutput(WS_XML_WRITER*, const WS_XML_WRITER_ENCODING*, const WS_XML_WRITER_OUTPUT*, HRESULT WINAPI WsSetOutput(WS_XML_WRITER*, const WS_XML_WRITER_ENCODING*, const WS_XML_WRITER_OUTPUT*,
const WS_XML_WRITER_PROPERTY*, ULONG, WS_ERROR*); const WS_XML_WRITER_PROPERTY*, ULONG, WS_ERROR*);
HRESULT WINAPI WsSetOutputToBuffer(WS_XML_WRITER*, WS_XML_BUFFER*, const WS_XML_WRITER_PROPERTY*, HRESULT WINAPI WsSetOutputToBuffer(WS_XML_WRITER*, WS_XML_BUFFER*, const WS_XML_WRITER_PROPERTY*,