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
c5715e09
Commit
c5715e09
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Define structures for chat.cnf
parent
b9bbed5e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
exec/load/cnfdefs.js
+49
-2
49 additions, 2 deletions
exec/load/cnfdefs.js
exec/load/cnflib.js
+3
-0
3 additions, 0 deletions
exec/load/cnflib.js
with
52 additions
and
2 deletions
exec/load/cnfdefs.js
+
49
−
2
View file @
c5715e09
...
...
@@ -24,7 +24,9 @@ var LEN_GSNAME = 15; /* Group/Lib short name */
var
LEN_GLNAME
=
40
;
/* Group/Lib long name */
var
LEN_SSNAME
=
25
;
/* Sub/Dir short name */
var
LEN_SLNAME
=
40
;
/* Sub/Dir long name */
var
LEN_CHATACTCMD
=
9
;
/* Chat action command */
var
LEN_CHATACTOUT
=
65
;
/* Chat action output string */
var
UINT16_T
=
2
;
var
UINT32_T
=
4
;
var
UINT64_T
=
8
;
...
...
@@ -498,4 +500,49 @@ struct.file={
lib
:
{
bytes
:
struct
.
lib_t
,
type
:
"
lst
"
},
dir
:
{
bytes
:
struct
.
dir_t
,
type
:
"
lst
"
},
txtsec
:
{
bytes
:
struct
.
txtsec_t
,
type
:
"
lst
"
},
};
\ No newline at end of file
};
struct
.
guru_t
=
{
name
:
{
bytes
:
26
,
type
:
"
str
"
},
code
:
{
bytes
:
LEN_CODE
+
1
,
type
:
"
str
"
},
ars
:
{
bytes
:
LEN_ARSTR
+
1
,
type
:
"
str
"
},
__PADDING__
:
{
bytes
:
16
}
};
struct
.
actset_t
=
{
name
:
{
bytes
:
26
,
type
:
"
str
"
},
};
struct
.
chatact_t
=
{
actset
:
{
bytes
:
UINT16_T
,
type
:
"
int
"
},
cmd
:
{
bytes
:
LEN_CHATACTCMD
+
1
,
type
:
"
str
"
},
out
:
{
bytes
:
LEN_CHATACTOUT
+
1
,
type
:
"
str
"
},
__PADDING__
:
{
bytes
:
16
}
};
struct
.
chan_t
=
{
actset
:
{
bytes
:
UINT16_T
,
type
:
"
int
"
},
name
:
{
bytes
:
26
,
type
:
"
str
"
},
code
:
{
bytes
:
LEN_CODE
+
1
,
type
:
"
str
"
},
ars
:
{
bytes
:
LEN_ARSTR
+
1
,
type
:
"
str
"
},
cost
:
{
bytes
:
UINT32_T
,
type
:
"
int
"
},
guru
:
{
bytes
:
UINT16_T
,
type
:
"
int
"
},
settings
:
{
bytes
:
UINT32_T
,
type
:
"
int
"
},
// AKA misc
__PADDING__
:
{
bytes
:
16
}
};
struct
.
page_t
=
{
cmd
:
{
bytes
:
LEN_CMD
+
1
,
type
:
"
str
"
},
ars
:
{
bytes
:
LEN_ARSTR
+
1
,
type
:
"
str
"
},
settings
:
{
bytes
:
UINT32_T
,
type
:
"
int
"
},
// AKA misc
__PADDING__
:
{
bytes
:
16
}
};
/* Chat configuration (chat.cnf) */
struct
.
chat
=
{
guru
:
{
bytes
:
struct
.
guru_t
,
type
:
"
lst
"
},
actset
:
{
bytes
:
struct
.
actset_t
,
type
:
"
lst
"
},
chatact
:
{
bytes
:
struct
.
chatact_t
,
type
:
"
lst
"
},
chan
:
{
bytes
:
struct
.
chan_t
,
type
:
"
lst
"
},
page
:
{
bytes
:
struct
.
page_t
,
type
:
"
lst
"
},
};
This diff is collapsed.
Click to expand it.
exec/load/cnflib.js
+
3
−
0
View file @
c5715e09
...
...
@@ -196,6 +196,9 @@ var CNF = new (function() {
case
"
file.cnf
"
:
struct
=
js
.
global
.
struct
.
file
;
break
;
case
"
chat.cnf
"
:
struct
=
js
.
global
.
struct
.
chat
;
break
;
default
:
return
false
;
}
...
...
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