diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-24 01:12:13 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-24 14:52:38 -0700 |
commit | 61cda728816b5916180f22d977ba741e2fadc8d9 (patch) | |
tree | 99e77029d5f3ffafff7c8ca0136169abcdaf8f7f /libdeno/deno.h | |
parent | 6afe94b3c855a8c486ce2a593cf2f8cac3b4d711 (diff) |
libdeno: Expose snapshot creation.
Diffstat (limited to 'libdeno/deno.h')
-rw-r--r-- | libdeno/deno.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdeno/deno.h b/libdeno/deno.h index f833bd541..c29bfc0bb 100644 --- a/libdeno/deno.h +++ b/libdeno/deno.h @@ -30,6 +30,11 @@ const char* deno_v8_version(); void deno_set_v8_flags(int* argc, char** argv); Deno* deno_new(deno_buf snapshot, deno_recv_cb cb); + +Deno* deno_new_snapshotter(deno_recv_cb cb, const char* js_filename, + const char* js_source, const char* source_map); +deno_buf deno_get_snapshot(Deno* d); + void deno_delete(Deno* d); // Returns false on error. |