2021-01-02 18:10:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-20 21:41:37 -05:00
|
|
|
/**
|
|
|
|
** \defgroup ssb_js SSB Interface
|
|
|
|
** Exposes SSB to JS.
|
|
|
|
** @{
|
|
|
|
*/
|
|
|
|
|
2024-03-03 18:12:44 -05:00
|
|
|
/** A JS context. */
|
2023-05-21 21:36:51 +00:00
|
|
|
typedef struct JSContext JSContext;
|
2024-03-03 18:12:44 -05:00
|
|
|
/** An SSB instance. */
|
2021-01-02 18:10:00 +00:00
|
|
|
typedef struct _tf_ssb_t tf_ssb_t;
|
|
|
|
|
2024-03-03 18:12:44 -05:00
|
|
|
/**
|
|
|
|
** Register the SSB script interface.
|
|
|
|
*/
|
2021-10-24 15:46:30 +00:00
|
|
|
void tf_ssb_register(JSContext* context, tf_ssb_t* ssb);
|
2024-02-20 21:41:37 -05:00
|
|
|
|
|
|
|
/** @} */
|