summaryrefslogtreecommitdiff
path: root/src/js.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/js.h')
-rw-r--r--src/js.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js.h b/src/js.h
index 5fc5f201..50366c70 100644
--- a/src/js.h
+++ b/src/js.h
@@ -16,8 +16,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef JS_H
-#define JS_H
+#ifndef __DWB_JS_H__
+#define __DWB_JS_H__
#include <JavaScriptCore/JavaScript.h>
typedef struct js_iterator_s js_array_iterator;
@@ -58,6 +58,7 @@ JSValueRef js_json_to_value(JSContextRef ctx, const char *text);
JSValueRef js_context_change(JSContextRef, JSContextRef, JSValueRef, JSValueRef *);
JSObjectRef js_value_to_function(JSContextRef, JSValueRef, JSValueRef *);
gboolean js_check_syntax(JSContextRef ctx, const char *script, const char *filename, int lineOffset);
+gboolean js_object_has_property(JSContextRef ctx, JSObjectRef arg, const char *name);
void js_array_iterator_init(JSContextRef ctx, js_array_iterator *iter, JSObjectRef object);
JSValueRef js_array_iterator_next(js_array_iterator *iter, JSValueRef *exc);