cleanup: namespace Montauk (capital M) => montauk::abi

This commit is contained in:
2026-06-16 09:09:16 +02:00
parent b6ac5ac994
commit 43d43ac9ea
165 changed files with 758 additions and 758 deletions
+7 -7
View File
@@ -94,7 +94,7 @@ namespace WinServer {
ResetSlotLocked(slot);
}
static int SendEventLocked(int windowId, const Montauk::WinEvent* event) {
static int SendEventLocked(int windowId, const montauk::abi::WinEvent* event) {
if (windowId < 0 || windowId >= MaxWindows || event == nullptr) return -1;
WindowSlot& slot = g_slots[windowId];
if (!slot.used || slot.eventMailbox == nullptr) return -1;
@@ -200,7 +200,7 @@ namespace WinServer {
return 0;
}
int Poll(int windowId, int callerPid, Montauk::WinEvent* outEvent) {
int Poll(int windowId, int callerPid, montauk::abi::WinEvent* outEvent) {
WsGuard guard;
if (windowId < 0 || windowId >= MaxWindows || outEvent == nullptr) return -1;
@@ -213,13 +213,13 @@ namespace WinServer {
return rc > 0 ? 1 : 0;
}
int Enumerate(Montauk::WinInfo* outArray, int maxCount) {
int Enumerate(montauk::abi::WinInfo* outArray, int maxCount) {
WsGuard guard;
int count = 0;
for (int i = 0; i < MaxWindows && count < maxCount; i++) {
if (!g_slots[i].used) continue;
Montauk::WinInfo& info = outArray[count];
montauk::abi::WinInfo& info = outArray[count];
info.id = i;
info.ownerPid = g_slots[i].ownerPid;
for (int j = 0; j < 64; j++) info.title[j] = g_slots[i].title[j];
@@ -263,7 +263,7 @@ namespace WinServer {
return result;
}
int SendEvent(int windowId, const Montauk::WinEvent* event) {
int SendEvent(int windowId, const montauk::abi::WinEvent* event) {
WsGuard guard;
return SendEventLocked(windowId, event);
}
@@ -346,7 +346,7 @@ namespace WinServer {
WindowSlot& slot = g_slots[windowId];
if (!slot.used || slot.ownerPid != callerPid) return -1;
slot.flags = flags & Montauk::WIN_FLAG_FULLSCREEN;
slot.flags = flags & montauk::abi::WIN_FLAG_FULLSCREEN;
return 0;
}
@@ -356,7 +356,7 @@ namespace WinServer {
if (scale > 2) scale = 2;
g_uiScale = scale;
Montauk::WinEvent ev{};
montauk::abi::WinEvent ev{};
ev.type = 4;
ev.scale.scale = scale;
for (int i = 0; i < MaxWindows; i++) {