Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qjs-wrapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
qjs-wrapper
Commits
958d414b
Commit
958d414b
authored
Jun 08, 2023
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shutdown is now handled at drone's API level
parent
97e9f0ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
qjs_wrapper.c
qjs_wrapper.c
+2
-2
No files found.
qjs_wrapper.c
View file @
958d414b
...
...
@@ -530,7 +530,7 @@ static JSValue js_start(JSContext *ctx, JSValueConst thisVal,
static
JSValue
js_stop
(
JSContext
*
ctx
,
JSValueConst
thisVal
,
int
argc
,
JSValueConst
*
argv
)
{
return
JS_NewInt32
(
ctx
,
stop
(
JS_ToBool
(
ctx
,
argv
[
0
])
));
return
JS_NewInt32
(
ctx
,
stop
());
}
static
JSValue
js_reboot
(
JSContext
*
ctx
,
JSValueConst
thisVal
,
...
...
@@ -702,7 +702,7 @@ static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF
(
"runPubsub"
,
6
,
js_run_pubsub
),
JS_CFUNC_DEF
(
"stopPubsub"
,
0
,
js_stop_pubsub
),
JS_CFUNC_DEF
(
"start"
,
4
,
js_start
),
JS_CFUNC_DEF
(
"stop"
,
1
,
js_stop
),
JS_CFUNC_DEF
(
"stop"
,
0
,
js_stop
),
JS_CFUNC_DEF
(
"reboot"
,
0
,
js_reboot
),
JS_CFUNC_DEF
(
"arm"
,
0
,
js_arm
),
JS_CFUNC_DEF
(
"takeOff"
,
0
,
js_takeOff
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment