11
[CCode (cheader_filename = "gjs/error-types.h", cname = "GjsError", prefix = "GJS_ERROR_", lower_case_cprefix = "gjs_error_")]
11
[CCode (cname = "GjsError", cprefix = "GJS_ERROR_", lower_case_cprefix = "gjs_error_")]
12
12
public errordomain GjsError {
17
[CCode (cheader_filename = "gjs/error-types.h", cname = "GjsJSError", prefix = "GJS_JS_ERROR_", lower_case_cprefix = "gjs_js_error_")]
17
[CCode (cname = "GjsJSError", cprefix = "GJS_JS_ERROR_", lower_case_cprefix = "gjs_js_error_")]
18
18
public errordomain GjsJSError {
32
31
* Gjs.Context is an opaque datastructure with no outward visible
35
[CCode (cheader_filename = "gjs/context.h", cname = "GjsContext", type_id = "GJS_TYPE_CONTEXT")]
36
public class Context {
34
[CCode (cname = "GjsContext",
35
type_id = "GJS_TYPE_CONTEXT")]
36
public class Context : GLib.Object {
38
38
[CCode (cname = "gjs_context_new")]
41
41
[CCode (cname = "gjs_context_new_with_search_path")]
42
public bool Context.with_search_path (string[] search_path);
42
public Context.with_search_path ([CCode (array_length = false)] string[] search_path);
44
[CCode (cname = "gjs_context_file")]
45
public bool eval_file (const string filename,
44
[CCode (cname = "gjs_context_eval_file")]
45
public bool eval_file (string filename,
46
46
out int exit_status_p)
49
49
[CCode (cname = "gjs_context_eval_module_file")]
50
public bool eval_module_file (const string filename,
50
public bool eval_module_file (string filename,
51
51
out uint8 exit_status_p)
55
55
[CCode (cname = "gjs_context_eval")]
56
public bool eval (const string script,
57
const string filename,
56
public bool eval (string script,
58
out int exit_status_p)
61
61
[CCode (cname = "gjs_context_register_module")]
62
public bool register_module (const string identifier,
62
public bool register_module (string identifier,
66
66
[CCode (cname = "gjs_context_eval_module")]
67
public bool eval_module (const string identifier,
67
public bool eval_module (string identifier,
68
68
out uint8 exit_code)
71
71
[CCode (cname = "gjs_context_define_string_array")]
72
public bool define_string_array (const string array_name,
73
[CCode array_length_pos = 1.1]
74
const string[] array_values)
72
public bool define_string_array (string array_name,
73
[CCode (array_length_pos = 1.1)]
74
string[] array_values)
77
77
[CCode (cname = "gjs_context_set_argv")]
78
public void set_argv ([CCode array_length_pos = 0.1]
78
public void set_argv ([CCode (array_length_pos = 0.1)]
79
79
string[] array_values);
81
81
[CCode (cname = "gjs_context_get_all")]
88
88
public void make_current ();
90
90
[CCode (cname = "gjs_context_get_native_context")]
91
public pointer get_native_context ();
91
public GLib.pointer get_native_context ();
93
93
[CCode (cname = "gjs_context_print_stack_stderr")]
94
94
public void print_stack_stderr ();
103
103
public Profiler get_profiler ();
105
105
[CCode (cname = "gjs_profiler_chain_sgnal")]
106
public bool profiler_chain_signal (Posix.siginfo_t info)
106
public bool profiler_chain_signal (Posix.siginfo_t info);
108
108
[CCode (cname = "gjs_context_setup_debugger_console")]
109
109
public void setup_debugger_console ();
113
113
public void dump_stack ();
115
115
[CCode (cheader_filename = "gjs/context.h", cname = "gjs_get_js_version")]
116
public const string get_js_version ();
116
public string get_js_version ();
119
119
* This class has no visible _new function, can only be created from
122
122
[CCode (cheader_filename = "gjs/profiler.h", cname = "GjsProfiler", type_id = "GJS_TYPE_PROFILER")]
123
public class Profiler {
123
public class Profiler : GLib.Object {
125
125
[CCode (cname = "gjs_profiler_set_capture_writer")]
126
set_capture_writer (pointer capture);
126
void set_capture_writer (GLib.pointer capture);
128
128
[CCode (cname = "gjs_profiler_set_filename")]
129
set_filename (const string filename);
129
void set_filename (string filename);
131
131
[CCode (cname = "gjs_profiler_set_fd")]
132
void set_fd (int fd);
134
134
[CCode (cname = "gjs_profiler_start")]
137
137
[CCode (cname = "gjs_profiler_stop")]
141
141
[CCode (cheader_filename = "gjs/mem.h", cname = "gjs_memory_report")]
142
memory_report (const string where,
142
void memory_report (string where,
143
143
bool die_if_fail);
145
145
[CCode (cheader_filename = "gjs/coverage.h", cname = "GjsProfiler", type_id = "GJS_TYPE_COVERAGE")]
146
public class Coverage {
146
public class Coverage : GLib.Object {
148
148
[CCode (cname = "gjs_coverage_new")]
149
public Coverage (const string coverage_prefixes
149
public Coverage (string coverage_prefixes,
150
150
Context coverage_context,
151
151
GLib.File output_dir);