Commit 1c7e2c35 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Add updateLogAndProjection function

parent 958d414b
...@@ -697,6 +697,12 @@ static JSValue js_healthAllOk(JSContext *ctx, JSValueConst this_val, ...@@ -697,6 +697,12 @@ static JSValue js_healthAllOk(JSContext *ctx, JSValueConst this_val,
return JS_NewBool(ctx, healthAllOk()); return JS_NewBool(ctx, healthAllOk());
} }
static JSValue js_updateLogAndProjection(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv)
{
return JS_NewInt32(ctx, updateLogAndProjection());
}
static const JSCFunctionListEntry js_funcs[] = { static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF("setMessage", 1, js_drone_set_message ), JS_CFUNC_DEF("setMessage", 1, js_drone_set_message ),
JS_CFUNC_DEF("runPubsub", 6, js_run_pubsub ), JS_CFUNC_DEF("runPubsub", 6, js_run_pubsub ),
...@@ -725,6 +731,7 @@ static const JSCFunctionListEntry js_funcs[] = { ...@@ -725,6 +731,7 @@ static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF("healthAllOk", 0, js_healthAllOk ), JS_CFUNC_DEF("healthAllOk", 0, js_healthAllOk ),
JS_CFUNC_DEF("initPubsub", 2, js_init_pubsub ), JS_CFUNC_DEF("initPubsub", 2, js_init_pubsub ),
JS_CFUNC_DEF("getLog", 0, js_get_log ), JS_CFUNC_DEF("getLog", 0, js_get_log ),
JS_CFUNC_DEF("updateLogAndProjection", 0, js_updateLogAndProjection ),
}; };
static int js_init(JSContext *ctx, JSModuleDef *m) static int js_init(JSContext *ctx, JSModuleDef *m)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment