Skip to content
Snippets Groups Projects
Commit 3a5af6d6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Define structures for node.cnf

parent c5715e09
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3164 passed
......@@ -546,3 +546,36 @@ struct.chat={
chan: {bytes:struct.chan_t, type:"lst"},
page: {bytes:struct.page_t, type:"lst"},
};
struct.node={
number: {bytes:UINT16_T, type:"int"},
name: {bytes:41, type:"str"},
phone: {bytes:13, type:"str"},
comspec: {bytes:LEN_CMD+1, type:"str"},
settings: {bytes:UINT32_T, type:"int"}, // AKA misc
ivt: {bytes:UINT16_T, type:"int"},
swap: {bytes:UCHAR, type:"int"},
swapdir: {bytes:LEN_DIR+1, type:"str"},
valuser: {bytes:UINT16_T, type:"int"},
minbps: {bytes:UINT16_T, type:"int"},
ars: {bytes:LEN_ARSTR+1, type:"str"},
dollars_per_call: {bytes:UCHAR, type:"int"},
editor: {bytes:LEN_CMD+1, type:"str"},
viewer: {bytes:LEN_CMD+1, type:"str"},
daily: {bytes:LEN_CMD+1, type:"str"},
scrnlen: {bytes:UCHAR, type:"int"},
scrnblank: {bytes:UCHAR, type:"int"},
__PADDING1__: {bytes:LEN_DIR+1},
text_dir: {bytes:LEN_DIR+1, type:"str"},
temp_dir: {bytes:LEN_DIR+1, type:"str"},
__PADDING2__: {bytes:(LEN_CMD+1)*10},
__PADDING3__: {bytes:(LEN_CMD+1)*12},
mdm_hang: {bytes:64, type:"str"},
sem_check: {bytes:UINT16_T, type:"int"},
stat_check: {bytes:UINT16_T, type:"int"},
scfg_cmd: {bytes:LEN_CMD+1, type:"str"},
sec_warn: {bytes:UINT16_T, type:"int"},
sec_hangup: {bytes:UINT16_T, type:"int"},
erruser: {bytes:UINT16_T, type:"int"},
errlevel: {bytes:UCHAR, type:"int"},
};
......@@ -199,6 +199,9 @@ var CNF = new (function() {
case "chat.cnf":
struct = js.global.struct.chat;
break;
case "node.cnf":
struct = js.global.struct.node;
break;
default:
return false;
}
......@@ -229,6 +232,12 @@ var CNF = new (function() {
case "file.cnf":
struct = js.global.struct.file;
break;
case "chat.cnf":
struct = js.global.struct.chat;
break;
case "node.cnf":
struct = js.global.struct.node;
break;
default:
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment