mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 03:43:37 +08:00
Correct header's dependencies and guards
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6513 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
parent
a1ce25943a
commit
34e7c32ee7
@ -1,86 +1,73 @@
|
||||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the mingw-w64 runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _INC_WSDXMLDOM
|
||||
#define _INC_WSDXMLDOM
|
||||
|
||||
#ifndef _INC_WSDAPI
|
||||
#error Please include wsdapi.h instead of this header. This header cannot be used directly.
|
||||
#endif
|
||||
#include <winapifamily.h>
|
||||
|
||||
#if (_WIN32_WINNT >= 0x0600)
|
||||
#ifndef __WSDXMLDOM_H__
|
||||
#define __WSDXMLDOM_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
|
||||
|
||||
typedef struct _WSDXML_TYPE {
|
||||
WCHAR *Uri;
|
||||
BYTE *Table;
|
||||
const WCHAR *Uri;
|
||||
const BYTE *Table;
|
||||
} WSDXML_TYPE;
|
||||
|
||||
typedef const WSDXML_TYPE *PCWSDXML_TYPE;
|
||||
|
||||
typedef struct _WSDXML_NAMESPACE {
|
||||
const WCHAR *Uri;
|
||||
const WCHAR *PreferredPrefix;
|
||||
WSDXML_NAME *Names;
|
||||
WORD NamesCount;
|
||||
WORD Encoding;
|
||||
struct _WSDXML_NAME *Names;
|
||||
WORD NamesCount;
|
||||
WORD Encoding;
|
||||
} WSDXML_NAMESPACE;
|
||||
|
||||
typedef const WSDXML_NAMESPACE *PCWSDXML_NAMESPACE;
|
||||
|
||||
typedef struct _WSDXML_NAME {
|
||||
WSDXML_NAMESPACE *Space;
|
||||
WCHAR *LocalName;
|
||||
WCHAR *LocalName;
|
||||
} WSDXML_NAME;
|
||||
|
||||
typedef struct _WSDXML_NODE {
|
||||
enum DUMMYUNIONNAME {
|
||||
ElementType,
|
||||
TextType
|
||||
} Type;
|
||||
WSDXML_ELEMENT *Parent;
|
||||
WSDXML_NODE *Next;
|
||||
} WSDXML_NODE;
|
||||
|
||||
typedef struct _WSDXML_TEXT {
|
||||
WSDXML_NODE Node;
|
||||
WCHAR *Text;
|
||||
} WSDXML_TEXT;
|
||||
|
||||
typedef struct _WSDXML_ATTRIBUTE {
|
||||
WSDXML_ELEMENT *Element;
|
||||
WSDXML_ATTRIBUTE *Next;
|
||||
WSDXML_NAME *Name;
|
||||
WCHAR *Value;
|
||||
} WSDXML_ATTRIBUTE;
|
||||
|
||||
typedef struct _WSDXML_PREFIX_MAPPING {
|
||||
DWORD Refs;
|
||||
WSDXML_PREFIX_MAPPING *Next;
|
||||
WSDXML_NAMESPACE *Space;
|
||||
WCHAR *Prefix;
|
||||
DWORD Refs;
|
||||
struct _WSDXML_PREFIX_MAPPING *Next;
|
||||
WSDXML_NAMESPACE *Space;
|
||||
WCHAR *Prefix;
|
||||
} WSDXML_PREFIX_MAPPING;
|
||||
|
||||
typedef struct _WSDXML_ATTRIBUTE {
|
||||
struct _WSDXML_ELEMENT *Element;
|
||||
struct _WSDXML_ATTRIBUTE *Next;
|
||||
WSDXML_NAME *Name;
|
||||
WCHAR *Value;
|
||||
} WSDXML_ATTRIBUTE;
|
||||
|
||||
typedef struct _WSDXML_NODE {
|
||||
enum {
|
||||
ElementType,
|
||||
TextType
|
||||
} Type;
|
||||
struct _WSDXML_ELEMENT *Parent;
|
||||
struct _WSDXML_NODE *Next;
|
||||
} WSDXML_NODE;
|
||||
|
||||
typedef struct _WSDXML_ELEMENT {
|
||||
WSDXML_NODE Node;
|
||||
WSDXML_NAME *Name;
|
||||
WSDXML_ATTRIBUTE *FirstAttribute;
|
||||
WSDXML_NODE *FirstChild;
|
||||
WSDXML_NODE Node;
|
||||
WSDXML_NAME *Name;
|
||||
WSDXML_ATTRIBUTE *FirstAttribute;
|
||||
WSDXML_NODE *FirstChild;
|
||||
WSDXML_PREFIX_MAPPING *PrefixMappings;
|
||||
} WSDXML_ELEMENT;
|
||||
|
||||
typedef struct _WSDXML_TEXT {
|
||||
WSDXML_NODE Node;
|
||||
WCHAR *Text;
|
||||
} WSDXML_TEXT;
|
||||
|
||||
typedef struct _WSDXML_ELEMENT_LIST {
|
||||
WSDXML_ELEMENT_LIST *Next;
|
||||
WSDXML_ELEMENT *Element;
|
||||
struct _WSDXML_ELEMENT_LIST *Next;
|
||||
WSDXML_ELEMENT *Element;
|
||||
} WSDXML_ELEMENT_LIST;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /*(_WIN32_WINNT >= 0x0600)*/
|
||||
#endif /*_INC_WSDXMLDOM*/
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user