[Zope3-checkins] CVS: Zope3/src/zope/proxy/context - wrapper.c:1.12 wrapper.h:1.4
Steve Alexander
steve@cat-box.net
Wed, 7 May 2003 11:53:44 -0400
Update of /cvs-repository/Zope3/src/zope/proxy/context
In directory cvs.zope.org:/tmp/cvs-serv5836/src/zope/proxy/context
Modified Files:
wrapper.c wrapper.h
Log Message:
Made ContextDescriptorType and ContextAwareType available from other C
code.
=== Zope3/src/zope/proxy/context/wrapper.c 1.11 => 1.12 ===
--- Zope3/src/zope/proxy/context/wrapper.c:1.11 Wed May 7 11:50:40 2003
+++ Zope3/src/zope/proxy/context/wrapper.c Wed May 7 11:53:43 2003
@@ -1274,6 +1274,8 @@
static WrapperInterface
wrapper_capi = {
&WrapperType,
+ &ContextDescriptorType,
+ &ContextAwareType,
api_check,
api_create,
api_getobject,
=== Zope3/src/zope/proxy/context/wrapper.h 1.3 => 1.4 ===
--- Zope3/src/zope/proxy/context/wrapper.h:1.3 Wed May 7 11:50:40 2003
+++ Zope3/src/zope/proxy/context/wrapper.h Wed May 7 11:53:43 2003
@@ -22,6 +22,8 @@
typedef struct {
PyTypeObject *wrappertype;
+ PyTypeObject *contextdescriptortype;
+ PyTypeObject *contextawaretype;
int (*check)(PyObject *obj);
PyObject *(*create)(PyObject *object, PyObject *context);
PyObject *(*getobject)(PyObject *wrapper);
@@ -65,6 +67,10 @@
#define WrapperType \
(_wrapper_api->wrappertype)
+#define ContextDescriptorType \
+ (_wrapper_api->contextdescriptortype)
+#define ContextAwareType \
+ (_wrapper_api->contextawaretype)
#define Wrapper_Check(obj) \
(_wrapper_api->check((obj)))
#define Wrapper_New(object, context) \