summaryrefslogtreecommitdiff
path: root/components/external/espruino/src/jswrap_modules.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/external/espruino/src/jswrap_modules.h')
-rw-r--r--components/external/espruino/src/jswrap_modules.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/external/espruino/src/jswrap_modules.h b/components/external/espruino/src/jswrap_modules.h
new file mode 100644
index 0000000000..2d2c07a345
--- /dev/null
+++ b/components/external/espruino/src/jswrap_modules.h
@@ -0,0 +1,21 @@
+/*
+ * This file is part of Espruino, a JavaScript interpreter for Microcontrollers
+ *
+ * Copyright (C) 2013 Gordon Williams <[email protected]>
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * ----------------------------------------------------------------------------
+ * JavaScript Functions for handling Modules
+ * ----------------------------------------------------------------------------
+ */
+#include "jsvar.h"
+
+JsVar *jswrap_require(JsVar *modulename);
+
+JsVar *jswrap_modules_getCached();
+void jswrap_modules_removeCached(JsVar *id);
+void jswrap_modules_removeAllCached();
+void jswrap_modules_addCached(JsVar *id, JsVar *sourceCode);