summaryrefslogtreecommitdiff
path: root/src/deno.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/deno.h')
-rw-r--r--src/deno.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deno.h b/src/deno.h
index bb4c91f1c..7bde5ab9d 100644
--- a/src/deno.h
+++ b/src/deno.h
@@ -31,6 +31,9 @@ void deno_set_flags(int* argc, char** argv);
Deno* deno_new(void* data, deno_recv_cb cb);
void deno_delete(Deno* d);
+// Returns the void* data provided in deno_new.
+void* deno_get_data(Deno*);
+
// Returns false on error.
// Get error text with deno_last_exception().
// 0 = fail, 1 = success