mirror of
https://github.com/MeshEnvy/lobbs.git
synced 2026-11-04 20:12:26 +01:00
feat(meshtastic): extract LoBBS plugin library
This commit is contained in:
1 parent
1f7ded8f3f
commit
5bffe8d259
124 files changed
+10907
-39
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
#if !MESHTASTIC_EXCLUDE_LOBBS
|
||||
|
||||
#include "LoBBSConfig.h"
|
||||
#include <stdint.h>
|
||||
|
||||
class LoBBSModule;
|
||||
typedef struct _meshtastic_MeshPacket meshtastic_MeshPacket;
|
||||
|
||||
/** 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 {
|
||||
LoBBSModule *mod = nullptr;
|
||||
const meshtastic_MeshPacket *mp = nullptr;
|
||||
uint32_t reqId = 0;
|
||||
LoBBSSession session;
|
||||
/** Remainder after verb; mutable cursor for shift/takePage. */
|
||||
char *rest = nullptr;
|
||||
uint32_t page = 1;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user