Permalink
Browse files

Added MidgardReflectorProperty. Fixes gh-46

  • Loading branch information...
1 parent 1bfdc68 commit 463bfd64252aeb13ca280d3fa3d6e41e8300f07f @piotras committed Sep 6, 2011
Showing with 399 additions and 8 deletions.
  1. +10 −8 config.m4
  2. +1 −0 midgard.c
  3. +2 −0 php_midgard.h
  4. +386 −0 php_midgard_reflector_property.c
View
@@ -45,14 +45,16 @@ if test "$PHP_MIDGARD2" != "no"; then
PHP_NEW_EXTENSION(midgard2, \
midgard.c query_builder.c \
- php_midgard_reflection_property.c php_midgard_collector.c php_midgard_object_parameter.c php_midgard_object_attachment.c \
- php_midgard_config.c php_midgard_gobject_closures.c php_midgard_gobject_generic.c php_midgard_user.c php_midgard_blob.c php_midgard_object_class.c \
- php_midgard_functions.c php_midgard_connection.c php_midgard_object.c php_midgard_replicator.c php_midgard_dbus.c \
- php_midgard_timestamp.c php_midgard_timestamp_api.c php_midgard_error.c php_midgard_handle.c php_midgard_transaction.c php_midgard__helpers.c \
- php_midgard_view.c php_midgard_storage.c php_reflection_workaround.c php_midgard_key_config_context.c \
- php_midgard_key_config_file_context.c php_midgard_key_config.c php_midgard_key_config_file.c \
- php_midgard_urlwrapper.c \
- php_midgard_query.c php_midgard_query_storage.c php_midgard_query_holders.c php_midgard_query_constraints.c php_midgard_reflector_object.c \
+ php_midgard_reflection_property.c php_midgard_collector.c php_midgard_object_parameter.c \
+ php_midgard_object_attachment.c php_midgard_config.c php_midgard_gobject_closures.c \
+ php_midgard_gobject_generic.c php_midgard_user.c php_midgard_blob.c php_midgard_object_class.c \
+ php_midgard_functions.c php_midgard_connection.c php_midgard_object.c php_midgard_replicator.c \
+ php_midgard_dbus.c php_midgard_timestamp.c php_midgard_timestamp_api.c php_midgard_error.c \
+ php_midgard_handle.c php_midgard_transaction.c php_midgard__helpers.c php_midgard_view.c \
+ php_midgard_storage.c php_reflection_workaround.c php_midgard_key_config_context.c \
+ php_midgard_key_config_file_context.c php_midgard_key_config.c php_midgard_key_config_file.c \
+ php_midgard_urlwrapper.c php_midgard_query.c php_midgard_query_storage.c php_midgard_query_holders.c \
+ php_midgard_query_constraints.c php_midgard_reflector_object.c php_midgard_reflector_property.c \
php_midgard_query_executors.c php_midgard_g_mainloop.c php_midgard_workspace_storage.c php_midgard_base_interface.c \
, $ext_shared)
PHP_ADD_EXTENSION_DEP(midgard2, spl)
View
@@ -374,6 +374,7 @@ PHP_MINIT_FUNCTION(midgard2)
PHP_MINIT(midgard2_user)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(midgard2_view)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(midgard2_reflector_object)(INIT_FUNC_ARGS_PASSTHRU);
+ PHP_MINIT(midgard2_reflector_property)(INIT_FUNC_ARGS_PASSTHRU);
/* Register midgard_metadata class */
static zend_class_entry midgard_metadata_class_entry;
View
@@ -221,6 +221,7 @@ PHP_MINIT_FUNCTION(midgard2_workspaces);
PHP_MINIT_FUNCTION(midgard2_base_abstract);
PHP_MINIT_FUNCTION(midgard2_base_interface);
PHP_MINIT_FUNCTION(midgard2_reflector_object);
+PHP_MINIT_FUNCTION(midgard2_reflector_property);
zend_class_entry *php_midgard_get_baseclass_ptr(zend_class_entry *ce);
zend_class_entry *php_midgard_get_baseclass_ptr_by_name(const char *name TSRMLS_DC);
@@ -259,6 +260,7 @@ extern zend_class_entry *php_midgard_datetime_class;
extern zend_class_entry *php_midgard_workspace_storage_class;
extern zend_class_entry *php_midgard_workspace_class;
extern zend_class_entry *php_midgard_reflector_object_class;
+extern zend_class_entry *php_midgard_reflector_property_class;
#define __php_objstore_object(instance) ((php_midgard_gobject *)zend_object_store_get_object(instance TSRMLS_CC))
#define __php_gobject_ptr(instance) (__php_objstore_object(instance)->gobject)
Oops, something went wrong.

0 comments on commit 463bfd6

Please sign in to comment.