2021-01-02 13:10:00 -05: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 17:36:51 -04:00
|
|
|
typedef struct JSContext JSContext;
|
2024-03-03 18:12:44 -05:00
|
|
|
/** An SSB instance. */
|
2021-01-02 13:10:00 -05: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 11:46:30 -04:00
|
|
|
void tf_ssb_register(JSContext* context, tf_ssb_t* ssb);
|
2024-02-20 21:41:37 -05:00
|
|
|
|
|
|
|
/** @} */
|