Commit 09418b37 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Add updateLogAndProjection function

parent 5ac642bf
......@@ -696,6 +696,12 @@ static JSValue js_healthAllOk(JSContext *ctx, JSValueConst this_val,
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[] = {
JS_CFUNC_DEF("setMessage", 1, js_drone_set_message ),
JS_CFUNC_DEF("runPubsub", 6, js_run_pubsub ),
......@@ -724,6 +730,7 @@ static const JSCFunctionListEntry js_funcs[] = {
JS_CFUNC_DEF("healthAllOk", 0, js_healthAllOk ),
JS_CFUNC_DEF("initPubsub", 2, js_init_pubsub ),
JS_CFUNC_DEF("getLog", 0, js_get_log ),
JS_CFUNC_DEF("updateLogAndProjection", 0, js_updateLogAndProjection ),
};
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