clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.

This commit is contained in:
maksw committed 2026-10-12 18:17:43 +02:00
1 parent 899225f551
commit c0ad63c27f
226 files changed
+6562 -4147

No files matched your search

+10 -9
View File
@@ -7,6 +7,7 @@
#include <ntlite/console_service.h>
#include <ntlite/syscall.h>
#include <stdint.h>
#include <stdbool.h>
#define RSSRV_LISTENER_BACKLOG 16u
#define RSSRV_SYMBOLIC_LINK_MAX_DEPTH 16u
@@ -49,7 +50,7 @@ typedef struct RSSRV_NAMESPACE_BINDING_VIEW {
uint32_t Kind;
SYS_RIGHTS ExportRights;
uint32_t ResolvedLength;
uint32_t Locked;
bool Locked;
} RSSRV_NAMESPACE_BINDING_VIEW;
typedef struct RSSRV_NAMESPACE_ENTRY {
@@ -135,7 +136,7 @@ typedef struct RSSRV_VOLUME_STATE {
typedef struct RSSRV_LISTENER_WORKER {
RSSRV_RESOURCE_SERVICE* Service;
SYS_HANDLE Listener;
uint32_t Administrative;
bool Administrative;
} RSSRV_LISTENER_WORKER;
struct RSSRV_RESOURCE_SERVICE {
@@ -160,7 +161,7 @@ typedef struct RSSRV_STATE {
void RssrvSetCurrentThreadName(const char* name);
// Terminates RSSRV without depending on a compiler runtime return path.
void RssrvExit(int code);
void RssrvExit(int32_t code);
// Initializes the native namespace root and its synchronization object.
KSTATUS RssrvNamespaceInitialize(RSSRV_NAMESPACE* namespaceState);
@@ -230,13 +231,13 @@ KSTATUS RssrvDisplayPublishDevice(RSSRV_DISPLAY_STATE* display);
KSTATUS RssrvDisplayQueryInfo(RSSRV_DISPLAY_STATE* display, SYS_DISPLAY_INFO* infoOut);
KSTATUS RssrvDisplayWriteConsole(RSSRV_DISPLAY_STATE* display, const char* data, size_t length);
KSTATUS RssrvDisplayQueryConsoleInfo(RSSRV_DISPLAY_STATE* display, SYS_CONSOLE_INFO* infoOut);
KSTATUS RssrvDisplaySetConsoleCursor(RSSRV_DISPLAY_STATE* display, int x, int y);
KSTATUS RssrvDisplaySetConsoleCursor(RSSRV_DISPLAY_STATE* display, int32_t x, int32_t y);
KSTATUS RssrvDisplayFillConsoleCharacter(RSSRV_DISPLAY_STATE* display, char character,
int x, int y, size_t length, size_t* writtenOut);
int32_t x, int32_t y, size_t length, size_t* writtenOut);
KSTATUS RssrvDisplayFillConsoleAttribute(RSSRV_DISPLAY_STATE* display, uint16_t attribute,
int x, int y, size_t length, size_t* writtenOut);
int32_t x, int32_t y, size_t length, size_t* writtenOut);
KSTATUS RssrvDisplayPutConsoleCharacter(RSSRV_DISPLAY_STATE* display, char character,
int x, int y, uint32_t foreground, uint32_t background);
int32_t x, int32_t y, uint32_t foreground, uint32_t background);
KSTATUS RssrvDisplayClearConsole(RSSRV_DISPLAY_STATE* display, uint32_t color);
// Initializes Session 0, input routing, and display ownership.
@@ -266,7 +267,7 @@ KSTATUS RssrvInputInitialize(RSSRV_INPUT_STATE* input,
RSSRV_SESSION_STATE* session,
SYS_HANDLE manager);
KSTATUS RssrvInputStart(RSSRV_INPUT_STATE* input);
KSTATUS RssrvInputReadKeyRecord(RSSRV_INPUT_STATE* input, int peek,
KSTATUS RssrvInputReadKeyRecord(RSSRV_INPUT_STATE* input, bool peek,
uint64_t timeoutMilliseconds, INPUT_KEY_RECORD* recordOut);
KSTATUS RssrvInputFlushKeys(RSSRV_INPUT_STATE* input, uint32_t* discardedOut);
@@ -296,7 +297,7 @@ KSTATUS RssrvVolumesQueryPublishedPath(RSSRV_VOLUME_STATE* volumes,
KSTATUS RssrvVolumesStartWorker(RSSRV_VOLUME_STATE* volumes);
// Returns whether a path belongs to the RSSRV-owned automatic mounted-volume naming family.
int RssrvVolumesOwnPath(const char* path, uint32_t length);
bool RssrvVolumesOwnPath(const char* path, uint32_t length);
// Initializes the public/admin resource protocol component around existing namespace state.
KSTATUS RssrvResourceInitialize(RSSRV_RESOURCE_SERVICE* service,