Files
lobbs/core/LoBBSCommandCtx.h
Ben Allfree 1243b2bc1b refactor(core): split pal from kernel
Move the BBS kernel under core/ and host I/O under platforms/.
2026-10-07 15:54:38 -07:00

26 lines
630 B
C++

#pragma once
#include "LoBBSConfig.h"
#include "LoWire.h"
#include <stdint.h>
class LoBBSKernel;
/** Resolved once per incoming command in dispatch (Auth owns load rules). */
struct LoBBSSession {
uint32_t nodeId = 0;
uint64_t userUuid = 0;
char username[LOBBS_USERNAME_BUFFER_SIZE] = {0};
bool isSysop = false;
char cwd[LOBBS_CWD_BUFFER_SIZE] = "/";
};
struct LoBBSCommandCtx {
LoBBSKernel *kernel = nullptr;
LoInbound inbound;
uint32_t reqId = 0;
LoBBSSession session;
/** Remainder after verb; mutable cursor for shift/takePage. */
char *rest = nullptr;
uint32_t page = 1;
};