Skip to content

Commit

Permalink
Rename SWRT/windows to SWRT/winapi (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle authored Dec 5, 2024
1 parent 5775f8a commit ffaf6ad
Show file tree
Hide file tree
Showing 32 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion Support/Sources/COM_ABI/combaseapi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SWRT/windows/combaseapi.h"
#include "SWRT/winapi/combaseapi.h"

#include <Windows.h>
#include <combaseapi.h>
Expand Down
14 changes: 7 additions & 7 deletions Support/Sources/COM_ABI/include/SWRT/modules/COM.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "SWRT/windows/BaseTsd.h"
#include "SWRT/windows/combaseapi.h"
#include "SWRT/windows/guiddef.h"
#include "SWRT/windows/oaidl.h"
#include "SWRT/windows/objidl.h"
#include "SWRT/windows/oleauto.h"
#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/BaseTsd.h"
#include "SWRT/winapi/combaseapi.h"
#include "SWRT/winapi/guiddef.h"
#include "SWRT/winapi/oaidl.h"
#include "SWRT/winapi/objidl.h"
#include "SWRT/winapi/oleauto.h"
#include "SWRT/winapi/unknwn.h"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/BaseTsd.h"
#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/BaseTsd.h"
#include "SWRT/winapi/unknwn.h"

SWRT_HResult SWRT_CoCreateFreeThreadedMarshaler(SWRT_IUnknown* punkOuter, SWRT_IUnknown** ppunkMarshal);
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "SWRT/windows/wtypes.h"
#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/wtypes.h"
#include "SWRT/winapi/unknwn.h"

typedef struct SWRT_ICreateErrorInfo {
struct SWRT_ICreateErrorInfo_VirtualTable* VirtualTable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include "SWRT/windows/guiddef.h"
#include "SWRT/windows/oleauto.h"
#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/guiddef.h"
#include "SWRT/winapi/oleauto.h"
#include "SWRT/winapi/unknwn.h"

// IAgileObject
typedef struct SWRT_IAgileObject {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <stdint.h>
#include "SWRT/windows/wtypes.h"
#include "SWRT/windows/oaidl.h"
#include "SWRT/winapi/wtypes.h"
#include "SWRT/winapi/oaidl.h"

SWRT_HResult SWRT_CreateErrorInfo(SWRT_ICreateErrorInfo ** pperrinfo);
SWRT_HResult SWRT_GetErrorInfo(uint32_t dwReserved, SWRT_IErrorInfo** pperrinfo);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "SWRT/windows/guiddef.h"
#include "SWRT/windows/BaseTsd.h"
#include "SWRT/winapi/guiddef.h"
#include "SWRT/winapi/BaseTsd.h"

// IUnknown
typedef struct SWRT_IUnknown {
Expand Down
16 changes: 8 additions & 8 deletions Support/Sources/COM_ABI/include/module.modulemap
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module COM_ABI {
header "SWRT/modules/COM.h"
header "SWRT/windows/BaseTsd.h"
header "SWRT/windows/combaseapi.h"
header "SWRT/windows/guiddef.h"
header "SWRT/windows/oaidl.h"
header "SWRT/windows/objidl.h"
header "SWRT/windows/oleauto.h"
header "SWRT/windows/unknwn.h"
header "SWRT/windows/wtypes.h"
header "SWRT/winapi/BaseTsd.h"
header "SWRT/winapi/combaseapi.h"
header "SWRT/winapi/guiddef.h"
header "SWRT/winapi/oaidl.h"
header "SWRT/winapi/objidl.h"
header "SWRT/winapi/oleauto.h"
header "SWRT/winapi/unknwn.h"
header "SWRT/winapi/wtypes.h"
export *
}

Expand Down
2 changes: 1 addition & 1 deletion Support/Sources/COM_ABI/oleauto.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SWRT/windows/oleauto.h"
#include "SWRT/winapi/oleauto.h"

#include <Windows.h>
#include <oleauto.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "SWRT/modules/COM.h"

#include "SWRT/windows/activation.h"
#include "SWRT/windows/eventtoken.h"
#include "SWRT/windows/inspectable.h"
#include "SWRT/windows/memorybuffer.h"
#include "SWRT/windows/restrictederrorinfo.h"
#include "SWRT/windows/roapi.h"
#include "SWRT/windows/robuffer.h"
#include "SWRT/windows/roerrorapi.h"
#include "SWRT/windows/weakreference.h"
#include "SWRT/windows/winstring.h"
#include "SWRT/windows/windows.foundation.ireference.h"
#include "SWRT/winapi/activation.h"
#include "SWRT/winapi/eventtoken.h"
#include "SWRT/winapi/inspectable.h"
#include "SWRT/winapi/memorybuffer.h"
#include "SWRT/winapi/restrictederrorinfo.h"
#include "SWRT/winapi/roapi.h"
#include "SWRT/winapi/robuffer.h"
#include "SWRT/winapi/roerrorapi.h"
#include "SWRT/winapi/weakreference.h"
#include "SWRT/winapi/winstring.h"
#include "SWRT/winapi/windows.foundation.ireference.h"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/inspectable.h"
#include "SWRT/winapi/inspectable.h"

// IActivationFactory
typedef struct SWRT_IActivationFactory {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "SWRT/windows/unknwn.h"
#include "SWRT/windows/winstring.h"
#include "SWRT/winapi/unknwn.h"
#include "SWRT/winapi/winstring.h"

// TrustLevel
typedef int32_t SWRT_TrustLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/unknwn.h"

typedef struct SWRT_IMemoryBufferByteAccess SWRT_IMemoryBufferByteAccess;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "SWRT/windows/oleauto.h"
#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/oleauto.h"
#include "SWRT/winapi/unknwn.h"

typedef struct SWRT_ILanguageExceptionErrorInfo {
struct SWRT_ILanguageExceptionErrorInfo_VirtualTable* VirtualTable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include "SWRT/windows/activation.h"
#include "SWRT/windows/BaseTsd.h"
#include "SWRT/windows/winstring.h"
#include "SWRT/winapi/activation.h"
#include "SWRT/winapi/BaseTsd.h"
#include "SWRT/winapi/winstring.h"

typedef enum SWRT_RO_INIT_TYPE {
SWRT_RO_INIT_SINGLETHREADED = 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/unknwn.h"

typedef struct SWRT_IBufferByteAccess SWRT_IBufferByteAccess;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <stdbool.h>
#include "SWRT/windows/unknwn.h"
#include "SWRT/windows/restrictederrorinfo.h"
#include "SWRT/windows/winstring.h"
#include "SWRT/winapi/unknwn.h"
#include "SWRT/winapi/restrictederrorinfo.h"
#include "SWRT/winapi/winstring.h"

typedef enum {
SWRT_RO_ERROR_REPORTING_NONE = 0x00000000,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/inspectable.h"
#include "SWRT/winapi/inspectable.h"

typedef struct SWRT_IWeakReference {
struct SWRT_IWeakReference_VirtualTable* VirtualTable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/inspectable.h"
#include "SWRT/winapi/inspectable.h"

// Windows.Foundation.PropertyType
typedef int32_t SWRT_WindowsFoundation_PropertyType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/inspectable.h"
#include "SWRT/winapi/inspectable.h"

// Windows.Foundation.IReference<T>
typedef struct SWRT_WindowsFoundation_IReference {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <stdint.h>
#include <uchar.h>
#include "SWRT/windows/BaseTsd.h"
#include "SWRT/winapi/BaseTsd.h"

typedef struct SWRT_HString_* SWRT_HString;
typedef struct SWRT_HStringBuffer_* SWRT_HStringBuffer;
Expand Down
22 changes: 11 additions & 11 deletions Support/Sources/WindowsRuntime_ABI/include/module.modulemap
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module WindowsRuntime_ABI {
header "SWRT/modules/WindowsRuntime.h"
header "SWRT/windows/activation.h"
header "SWRT/windows/eventtoken.h"
header "SWRT/windows/inspectable.h"
header "SWRT/windows/memorybuffer.h"
header "SWRT/windows/restrictederrorinfo.h"
header "SWRT/windows/roapi.h"
header "SWRT/windows/robuffer.h"
header "SWRT/windows/roerrorapi.h"
header "SWRT/windows/weakreference.h"
header "SWRT/windows/winstring.h"
header "SWRT/winapi/activation.h"
header "SWRT/winapi/eventtoken.h"
header "SWRT/winapi/inspectable.h"
header "SWRT/winapi/memorybuffer.h"
header "SWRT/winapi/restrictederrorinfo.h"
header "SWRT/winapi/roapi.h"
header "SWRT/winapi/robuffer.h"
header "SWRT/winapi/roerrorapi.h"
header "SWRT/winapi/weakreference.h"
header "SWRT/winapi/winstring.h"
export *
}

module SWRT_WindowsFoundation {
header "SWRT/windows/windows.foundation.h"
header "SWRT/winapi/windows.foundation.h"
export *
}
2 changes: 1 addition & 1 deletion Support/Sources/WindowsRuntime_ABI/roapi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SWRT/windows/roapi.h"
#include "SWRT/winapi/roapi.h"

#include <Windows.h>
#include <roapi.h>
Expand Down
2 changes: 1 addition & 1 deletion Support/Sources/WindowsRuntime_ABI/roerrorapi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SWRT/windows/roerrorapi.h"
#include "SWRT/winapi/roerrorapi.h"

#include <Windows.h>
#include <roerrorapi.h>
Expand Down
2 changes: 1 addition & 1 deletion Support/Sources/WindowsRuntime_ABI/winstring.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SWRT/windows/winstring.h"
#include "SWRT/winapi/winstring.h"

#include <winstring.h>

Expand Down
2 changes: 1 addition & 1 deletion Support/Tests/ABI/include/SWRT_ICOMTest.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/unknwn.h"

// ICOMTest
typedef struct SWRT_ICOMTest {
Expand Down
2 changes: 1 addition & 1 deletion Support/Tests/ABI/include/SWRT_ICOMTest2.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/unknwn.h"
#include "SWRT/winapi/unknwn.h"

// ICOMTest2
typedef struct SWRT_ICOMTest2 {
Expand Down
2 changes: 1 addition & 1 deletion Support/Tests/ABI/include/SWRT_IWinRTTest.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "SWRT/windows/inspectable.h"
#include "SWRT/winapi/inspectable.h"

// IWinRTTest
typedef struct SWRT_IWinRTTest {
Expand Down

0 comments on commit ffaf6ad

Please sign in to comment.