diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 00:06:13 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 00:06:13 +0300 |
commit | 2a8da8606fc169aa9929e9a1550c8e29c466880b (patch) | |
tree | e29d23bc8f08f5f5232f319649e7df2d58ac72d8 /python/spec-py.h | |
parent | 39d79f91420ba7d9527e04d00b4b0dc2d6cad9ff (diff) | |
download | librpm-tizen-2a8da8606fc169aa9929e9a1550c8e29c466880b.tar.gz librpm-tizen-2a8da8606fc169aa9929e9a1550c8e29c466880b.tar.bz2 librpm-tizen-2a8da8606fc169aa9929e9a1550c8e29c466880b.zip |
Add type checking macros for all rpm python type objects
Diffstat (limited to 'python/spec-py.h')
-rw-r--r-- | python/spec-py.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/spec-py.h b/python/spec-py.h index 0ed16e6e5..25eac76f3 100644 --- a/python/spec-py.h +++ b/python/spec-py.h @@ -7,6 +7,8 @@ typedef struct specObject_s specObject; extern PyTypeObject spec_Type; +#define specObject_Check(v) ((v)->ob_type == &spec_Type) + rpmSpec specFromSpec(specObject * spec); PyObject * spec_Wrap(rpmSpec spec); |