v8js_v8object_class.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2013 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | http://www.opensource.org/licenses/mit-license.php MIT License |
  8. +----------------------------------------------------------------------+
  9. | Author: Jani Taskinen <[email protected]> |
  10. | Author: Patrick Reilly <[email protected]> |
  11. +----------------------------------------------------------------------+
  12. */
  13. #ifndef V8JS_V8OBJECT_CLASS_H
  14. #define V8JS_V8OBJECT_CLASS_H
  15. /* {{{ Object container */
  16. struct v8js_v8object {
  17. zend_object std;
  18. v8::Persistent<v8::Value> v8obj;
  19. int flags;
  20. struct v8js_ctx *ctx;
  21. HashTable *properties;
  22. };
  23. /* }}} */
  24. extern zend_class_entry *php_ce_v8object;
  25. extern zend_class_entry *php_ce_v8function;
  26. /* Create PHP V8 object */
  27. void v8js_v8object_create(zval *, v8::Handle<v8::Value>, int, v8::Isolate * TSRMLS_DC);
  28. PHP_MINIT_FUNCTION(v8js_v8object_class);
  29. #endif /* V8JS_V8OBJECT_CLASS_H */
  30. /*
  31. * Local variables:
  32. * tab-width: 4
  33. * c-basic-offset: 4
  34. * indent-tabs-mode: t
  35. * End:
  36. * vim600: noet sw=4 ts=4 fdm=marker
  37. * vim<600: noet sw=4 ts=4
  38. */