Module: wine
Branch: master
Commit: 310225a2455cf94046abdc93f8d92e2f9a037f3d
URL: https://gitlab.winehq.org/wine/wine/-/commit/310225a2455cf94046abdc93f8d92e…
Author: Julian Klemann <jklemann(a)codeweavers.com>
Date: Wed Aug 17 14:23:05 2022 -0500
windows.devices.enumeration: Create private header file.
---
dlls/windows.devices.enumeration/main.c | 17 ++-----------
dlls/windows.devices.enumeration/private.h | 40 ++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 15 deletions(-)
diff --git a/dlls/windows.devices.enumeration/main.c b/dlls/windows.devices.enumeration/main.c
index b5cc5b63e14..c035531ff90 100644
--- a/dlls/windows.devices.enumeration/main.c
+++ b/dlls/windows.devices.enumeration/main.c
@@ -17,23 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <stdarg.h>
-
-#define COBJMACROS
-#include "windef.h"
-#include "winbase.h"
-#include "winstring.h"
-#include "wine/debug.h"
-#include "objbase.h"
-
#include "initguid.h"
-#include "activation.h"
+#include "private.h"
-#define WIDL_using_Windows_Foundation
-#define WIDL_using_Windows_Foundation_Collections
-#include "windows.foundation.h"
-#define WIDL_using_Windows_Devices_Enumeration
-#include "windows.devices.enumeration.h"
+#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(enumeration);
diff --git a/dlls/windows.devices.enumeration/private.h b/dlls/windows.devices.enumeration/private.h
new file mode 100644
index 00000000000..e8500a742c0
--- /dev/null
+++ b/dlls/windows.devices.enumeration/private.h
@@ -0,0 +1,40 @@
+/* WinRT Windows.Devices.Enumeration implementation
+ *
+ * Copyright 2021 Gijs Vermeulen
+ * Copyright 2022 Julian Klemann for CodeWeavers
+ *
+ * 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_WINDOWS_DEVICES_ENUMERATION_PRIVATE_H
+#define __WINE_WINDOWS_DEVICES_ENUMERATION_PRIVATE_H
+
+#include <stdarg.h>
+
+#define COBJMACROS
+#include "windef.h"
+#include "winbase.h"
+#include "winstring.h"
+#include "objbase.h"
+
+#include "activation.h"
+
+#define WIDL_using_Windows_Foundation
+#define WIDL_using_Windows_Foundation_Collections
+#include "windows.foundation.h"
+#define WIDL_using_Windows_Devices_Enumeration
+#include "windows.devices.enumeration.h"
+
+#endif