[1/3] include: Move some definitions from iptypes.h to nldef.h.
Francois Gouget
fgouget at free.fr
Tue Dec 13 14:04:31 CST 2011
Include nldef.h where appropriate.
---
include/iptypes.h | 30 ++++--------------------------
include/mstcpip.h | 2 ++
include/nldef.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+), 26 deletions(-)
create mode 100644 include/nldef.h
diff --git a/include/iptypes.h b/include/iptypes.h
index 8ce7df6..997388e 100644
--- a/include/iptypes.h
+++ b/include/iptypes.h
@@ -21,6 +21,7 @@
#include <time.h>
#include <ifdef.h>
+#include <nldef.h>
#define MAX_ADAPTER_DESCRIPTION_LENGTH 128
#define MAX_ADAPTER_NAME_LENGTH 256
@@ -87,32 +88,9 @@ typedef struct {
UINT EnableDns;
} FIXED_INFO, *PFIXED_INFO;
-typedef enum {
- IpPrefixOriginOther = 0,
- IpPrefixOriginManual,
- IpPrefixOriginWellKnown,
- IpPrefixOriginDhcp,
- IpPrefixOriginRouterAdvertisement,
- IpPrefixOriginUnchanged = 16
-} IP_PREFIX_ORIGIN;
-
-typedef enum {
- IpSuffixOriginOther = 0,
- IpSuffixOriginManual,
- IpSuffixOriginWellKnown,
- IpSuffixOriginDhcp,
- IpSuffixOriginLinkLayerAddress,
- IpSuffixOriginRandom,
- IpSuffixOriginUnchanged = 16
-} IP_SUFFIX_ORIGIN;
-
-typedef enum {
- IpDadStateInvalid = 0,
- IpDadStateTentative,
- IpDadStateDuplicate,
- IpDadStateDeprecated,
- IpDadStatePreferred
-} IP_DAD_STATE;
+typedef NL_PREFIX_ORIGIN IP_PREFIX_ORIGIN;
+typedef NL_SUFFIX_ORIGIN IP_SUFFIX_ORIGIN;
+typedef NL_DAD_STATE IP_DAD_STATE;
#ifdef _WINSOCK2API_
diff --git a/include/mstcpip.h b/include/mstcpip.h
index 147e135..cb3ce8d 100644
--- a/include/mstcpip.h
+++ b/include/mstcpip.h
@@ -18,6 +18,8 @@
#ifndef __WINE_MSTCPIP_H
#define __WINE_MSTCPIP_H
+#include <nldef.h>
+
struct tcp_keepalive
{
ULONG onoff;
diff --git a/include/nldef.h b/include/nldef.h
new file mode 100644
index 0000000..abce1af
--- /dev/null
+++ b/include/nldef.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2003 Juan Lang
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#ifndef __WINE_NLDEF_H
+#define __WINE_NLDEF_H
+
+typedef enum
+{
+ IpPrefixOriginOther = 0,
+ IpPrefixOriginManual,
+ IpPrefixOriginWellKnown,
+ IpPrefixOriginDhcp,
+ IpPrefixOriginRouterAdvertisement,
+ IpPrefixOriginUnchanged = 16,
+} NL_PREFIX_ORIGIN;
+
+typedef enum
+{
+ IpSuffixOriginOther = 0,
+ IpSuffixOriginManual,
+ IpSuffixOriginWellKnown,
+ IpSuffixOriginDhcp,
+ IpSuffixOriginLinkLayerAddress,
+ IpSuffixOriginRandom,
+ IpSuffixOriginUnchanged = 16,
+} NL_SUFFIX_ORIGIN;
+
+typedef enum
+{
+ IpDadStateInvalid = 0,
+ IpDadStateTentative,
+ IpDadStateDuplicate,
+ IpDadStateDeprecated,
+ IpDadStatePreferred,
+} NL_DAD_STATE;
+
+#endif /* __WINE_NLDEF_H */
--
1.7.7.3
More information about the wine-patches
mailing list