mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-09 15:18:41 +00:00
34 lines
1.3 KiB
C++
34 lines
1.3 KiB
C++
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP Version 5 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1997-2013 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| http://www.opensource.org/licenses/mit-license.php MIT License |
|
|
+----------------------------------------------------------------------+
|
|
| Author: Jani Taskinen <jani.taskinen@iki.fi> |
|
|
| Author: Patrick Reilly <preilly@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef V8JS_OBJECT_EXPORT_H
|
|
#define V8JS_OBJECT_EXPORT_H
|
|
|
|
v8::Handle<v8::Value> v8js_hash_to_jsobj(zval *value, v8::Isolate *isolate TSRMLS_DC);
|
|
|
|
|
|
typedef enum {
|
|
V8JS_PROP_GETTER,
|
|
V8JS_PROP_SETTER,
|
|
V8JS_PROP_QUERY,
|
|
V8JS_PROP_DELETER
|
|
} property_op_t;
|
|
|
|
template<typename T>
|
|
v8::Local<v8::Value> v8js_named_property_callback(v8::Local<v8::String> property,
|
|
const v8::PropertyCallbackInfo<T> &info,
|
|
property_op_t callback_type,
|
|
v8::Local<v8::Value> set_value = v8::Local<v8::Value>());
|
|
|
|
#endif /* V8JS_OBJECT_EXPORT_H */
|