Sha256: 1370557ea4179162f971913045a5bb62ab4bb94f98f0accaa32709cdc5f3c047

Contents?: true

Size: 826 Bytes

Versions: 2

Compression:

Stored size: 826 Bytes

Contents

#include "config.h"
#include "ptor.h"
#include "rtop.h"
#include "cbridge.h"

#ifndef _RP_OBJECT_H_
#define _RP_OBJECT_H_

struct RubyPyObj 
{
	PyObject* pObject;
};

typedef struct RubyPyObj PObj;

void rp_obj_mark(PObj* self);

void rp_obj_free(PObj* self);

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);

#endif /* _RP_OBJECT_H_ */

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubypython-0.2.0 ext/rubypython_bridge/rp_object.h
rubypython-0.2.1 ext/rubypython_bridge/rp_object.h