js: Add a place to start moving imports to C.

This commit is contained in:
2025-02-27 09:58:15 -05:00
parent 60d4b06057
commit 0da7e2722f
4 changed files with 40 additions and 0 deletions

18
src/api.js.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
/**
** \defgroup api_js JS API
** Functions that are ultimately exposed to apps.
** @{
*/
/** A JS context. */
typedef struct JSContext JSContext;
/**
** Register JS API functions.
** @param context The JS context.
*/
void tf_api_register(JSContext* context);
/** @} */