1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2020 Evan Welsh <contact@evanwelsh.com>
#ifndef GJS_INTERNAL_H_
#define GJS_INTERNAL_H_
#include <config.h>
#include <js/TypeDecls.h>
#include "gjs/macros.h"
GJS_JSAPI_RETURN_CONVENTION
bool gjs_load_internal_module(JSContext* cx, const char* identifier);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_compile_module(JSContext* cx, unsigned argc, JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_compile_internal_module(JSContext* cx, unsigned argc,
JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_get_registry(JSContext* cx, unsigned argc, JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_set_global_module_loader(JSContext* cx, unsigned argc,
JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_set_module_private(JSContext* cx, unsigned argc,
JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_parse_uri(JSContext* cx, unsigned argc, JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_resolve_relative_resource_or_file(JSContext* cx,
unsigned argc,
JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_load_resource_or_file(JSContext* cx, unsigned argc,
JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_load_resource_or_file_async(JSContext* cx, unsigned argc,
JS::Value* vp);
GJS_JSAPI_RETURN_CONVENTION
bool gjs_internal_uri_exists(JSContext* cx, unsigned argc, JS::Value* vp);
#endif // GJS_INTERNAL_H_
|