summaryrefslogtreecommitdiff
path: root/src/handlers.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-13 03:24:07 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-18 15:43:50 -0400
commit3e51605bc9ca98522fc21a0673e690105f48da98 (patch)
tree1c31da16173d95d6623721414b402d1dcdf069b4 /src/handlers.h
parent8a4e3dfda4975540d6e0059248477facfe03c31c (diff)
Execute JS for the first time in Rust rewrite.
Implements code_fetch handler in Rust. Add ability to embed string assets (for typescript declaration files) Remove deno_cc and deno_cc_nosnapshot targets.
Diffstat (limited to 'src/handlers.h')
-rw-r--r--src/handlers.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/handlers.h b/src/handlers.h
index b398eca61..a95bc7265 100644
--- a/src/handlers.h
+++ b/src/handlers.h
@@ -2,10 +2,12 @@
// All rights reserved. MIT License.
#ifndef HANDLERS_H_
#define HANDLERS_H_
-extern "C" {
+
#include <stdint.h>
+#include "deno.h"
-void handle_code_fetch(uint32_t cmd_id, const char* module_specifier,
+extern "C" {
+void handle_code_fetch(Deno* d, uint32_t cmd_id, const char* module_specifier,
const char* containing_file);
-}
+} // extern "C"
#endif // HANDLERS_H_