ext/rubypython_bridge/rp_object.h in rubypython-0.2.8 vs ext/rubypython_bridge/rp_object.h in rubypython-0.2.9
- old
+ new
@@ -1,68 +1,22 @@
#include "config.h"
#include "ptor.h"
#include "rtop.h"
#include "cbridge.h"
+#include "rp_error.h"
#ifndef _RP_OBJECT_H_
#define _RP_OBJECT_H_
-struct RubyPyObj
+typedef struct RubyPyObj
{
PyObject* pObject;
-};
+} PObj;
-typedef struct RubyPyObj PObj;
+PyObject* rpObjectGetPyObject(VALUE);
-void rp_obj_mark(PObj* self);
+VALUE rpObjectFromPyObject(PyObject*);
-void rp_obj_free(PObj* self);
+int rpHasSymbol(VALUE, ID);
-VALUE rp_obj_alloc(VALUE klass);
-
-PyObject* rp_obj_pobject(VALUE self);
-
-VALUE rp_obj_name(VALUE self);
-
-
-//Ruby wrapper for Python Modules
-VALUE rp_mod_init(VALUE self,VALUE mname);
-
-int rp_has_attr(VALUE self,ID func_hame);
-
-VALUE rp_mod_call_func(VALUE self,VALUE func_name,VALUE args);
-
-VALUE rp_mod_delegate(VALUE self,VALUE args);
-
-//Ruby wrapper for Python classes
-
-VALUE rp_cla_from_class(PyObject *pClass);
-
-VALUE rp_func_from_function(PyObject *pFunc);
-
-int rp_is_func(VALUE pObj);
-
-VALUE rp_obj_from_pyobject(PyObject *pObj);
-
-VALUE rp_inst_from_instance(PyObject *pInst);
-
-VALUE rp_inst_delegate(VALUE self,VALUE args);
-
-VALUE rp_cla_new_inst(VALUE self,VALUE args);
-
-VALUE rp_obj_responds(VALUE self,VALUE mname);
-
-VALUE blank_undef_if(VALUE mname,VALUE klass);
-
-VALUE blank_obj_prep(VALUE self);
-
-int rp_equal(VALUE args);
-
-int rp_double_bang(VALUE args);
-
-VALUE rp_mod_attr_set(VALUE self,VALUE args);
-
-VALUE rp_inst_attr_set(VALUE self, VALUE args);
-
-VALUE rp_obj_wrap(PyObject* pObj);
-
-#endif /* _RP_OBJECT_H_ */
+VALUE rpRespondsTo(VALUE, VALUE);
+#endif
\ No newline at end of file