Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2916346
library.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
605 B
Referenced Files
None
Subscribers
None
library.h
View Options
#ifndef ESM_LIBRARY_H
#define ESM_LIBRARY_H
#include
"types.h"
#include
<stdbool.h>
#include
<stddef.h>
typedef
jsval_t
(
*
ant_library_init_fn
)(
ant_t
*
js
);
typedef
void
(
*
ant_library_iter_fn
)(
const
char
*
name
,
void
*
userdata
);
void
ant_register_library
(
ant_library_init_fn
init_fn
,
const
char
*
name
,
...);
void
ant_library_foreach
(
ant_library_iter_fn
cb
,
void
*
userdata
);
#define ant_standard_library(name, lib) \
ant_register_library(lib, name, "ant:" name, "node:" name, NULL)
jsval_t
js_esm_load_registered_library
(
ant_t
*
js
,
const
char
*
specifier
,
size_t
spec_len
,
bool
*
loaded
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Mar 26, 4:47 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
511857
Default Alt Text
library.h (605 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment