Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
e5bd0b63
Commit
e5bd0b63
authored
1 year ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
New property: system.mqtt_enabled
JSDOC fix-ups.
parent
7d1e321c
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/js_system.c
+25
-16
25 additions, 16 deletions
src/sbbs3/js_system.c
with
25 additions
and
16 deletions
src/sbbs3/js_system.c
+
25
−
16
View file @
e5bd0b63
...
...
@@ -60,6 +60,8 @@ enum {
,
SYS_PROP_NODES
,
SYS_PROP_LASTNODE
,
SYS_PROP_MQTT_ENABLED
,
SYS_PROP_NEW_PASS
,
SYS_PROP_NEW_MAGIC
,
SYS_PROP_NEW_LEVEL
...
...
@@ -172,6 +174,9 @@ static JSBool js_system_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
case
SYS_PROP_LASTNODE
:
*
vp
=
INT_TO_JSVAL
(
cfg
->
sys_lastnode
);
break
;
case
SYS_PROP_MQTT_ENABLED
:
*
vp
=
BOOLEAN_TO_JSVAL
(
cfg
->
mqtt
.
enabled
);
break
;
case
SYS_PROP_PWDAYS
:
*
vp
=
INT_TO_JSVAL
(
cfg
->
sys_pwdays
);
break
;
...
...
@@ -432,6 +437,8 @@ static jsSyncPropertySpec js_system_properties[] = {
{
"last_node"
,
SYS_PROP_LASTNODE
,
SYSOBJ_FLAGS
,
310
},
{
"lastnode"
,
SYS_PROP_LASTNODE
,
JSPROP_READONLY
,
310
},
/* alias */
{
"mqtt_enabled"
,
SYS_PROP_MQTT_ENABLED
,
SYSOBJ_FLAGS
,
320
},
{
"newuser_password"
,
SYS_PROP_NEW_PASS
,
SYSOBJ_FLAGS
,
310
},
{
"newuser_magic_word"
,
SYS_PROP_NEW_MAGIC
,
SYSOBJ_FLAGS
,
310
},
{
"newuser_level"
,
SYS_PROP_NEW_LEVEL
,
SYSOBJ_FLAGS
,
310
},
...
...
@@ -492,8 +499,8 @@ static char* sys_prop_desc[] = {
,
"Operator is available for chat"
,
"Default Guru (AI) name"
,
"System QWK-ID (for QWK packets)"
,
"Settings bit
field
(see <tt>SYS_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,
"Login control settings bit
field
(see <tt>LOGIN_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,
"Settings bit
-flags
(see <tt>SYS_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,
"Login control settings bit
-flags
(see <tt>LOGIN_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,
"Internet address (host or domain name)"
,
"Location (city, state)"
,
"Timezone (use <i>system.zonestr()</i> to get string representation)"
...
...
@@ -506,14 +513,16 @@ static char* sys_prop_desc[] = {
,
"Last user record number in user database (includes deleted and inactive user records)"
,
"Name of last user to logoff"
,
"Amount of free disk space (in bytes)"
,
"Amount of free disk space (in ki
lo
bytes)"
,
"Amount of free disk space (in ki
bi
bytes)"
,
"Total number of BBS nodes"
,
"Last displayable node number"
,
"New user password"
,
"New user magic word"
,
"New user level"
,
"MQTT support (connection to MQTT broker) is enabled"
,
"New user password (NUP, optional)"
,
"New user magic word (optional)"
,
"New user security level"
,
"New user flag set #1"
,
"New user flag set #2"
,
"New user flag set #3"
...
...
@@ -522,14 +531,14 @@ static char* sys_prop_desc[] = {
,
"New user exemption flags"
,
"New user credits"
,
"New user extra minutes"
,
"New user command shell"
,
"New user external editor"
,
"New user settings"
,
"New user file transfer protocol (command key)"
,
"New user
default
command shell"
,
"New user
default
external editor"
,
"New user
default
settings"
,
"New user
default
file transfer protocol (command key)"
,
"New user expiration days"
,
"New user questions
bitfield
(see <tt>UQ_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,
"New user questions
/prompts
(see <tt>UQ_*</tt> in <tt>sbbsdefs.js</tt> for bit definitions)"
,
"Expired user level"
,
"Expired user
security
level"
,
"Expired user flag set #1"
,
"Expired user flag set #2"
,
"Expired user flag set #3"
...
...
@@ -538,7 +547,7 @@ static char* sys_prop_desc[] = {
,
"Expired user exemption flags"
/* directories */
,
"
N
ode directory"
,
"
Current n
ode directory"
,
"Control file directory"
,
"Data file directory"
,
"Text file directory"
...
...
@@ -2316,9 +2325,9 @@ static char* node_prop_desc[] = {
,
"Current user action (see <tt>nodedefs.js</tt>)"
,
"Current user number"
,
"Connection speed (<tt>0xffff</tt> = Telnet or RLogin)"
,
"Miscellaneous bit
field
(see <tt>nodedefs.js</tt>)"
,
"Auxil
l
ary value"
,
"Extended auxil
l
ary value"
,
"Miscellaneous bit
-flags
(see <tt>nodedefs.js</tt>)"
,
"Auxil
i
ary value"
,
"Extended auxil
i
ary value"
,
"Node directory"
,
NULL
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment