Move all JS interface things into .js.c files with _register() functions.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3671 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-10-24 15:46:30 +00:00
parent b1a6384ac1
commit f4f6bb8333
24 changed files with 228 additions and 181 deletions

View File

@ -1,7 +1,7 @@
#include "ssb.h"
#include "ssb.db.h"
#include "ssb.qjs.h"
#include "ssb.js.h"
#include "tests.h"
#include <assert.h>
@ -82,9 +82,9 @@ void tf_ssb_test_ssb(const tf_test_options_t* options)
uv_loop_init(&loop);
tf_ssb_t* ssb0 = tf_ssb_create(&loop, NULL, db0, NULL);
tf_ssb_init(tf_ssb_get_context(ssb0), ssb0);
tf_ssb_register(tf_ssb_get_context(ssb0), ssb0);
tf_ssb_t* ssb1 = tf_ssb_create(&loop, NULL, db1, NULL);
tf_ssb_init(tf_ssb_get_context(ssb1), ssb1);
tf_ssb_register(tf_ssb_get_context(ssb1), ssb1);
test_t test = {
.ssb0 = ssb0,