summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2013-11-06 15:41:07 +0100
committerMichael Andres <ma@suse.de>2013-11-06 15:41:07 +0100
commitc17af20dc9ef8002dc132600c1008138d18bb277 (patch)
tree9579f99e48325556076c7d7608026381ab9c3b54
parentb5006c69c777b54dfd8fc05cb60e9ca150d2687d (diff)
downloadlibzypp-bindings-c17af20dc9ef8002dc132600c1008138d18bb277.tar.gz
libzypp-bindings-c17af20dc9ef8002dc132600c1008138d18bb277.tar.bz2
libzypp-bindings-c17af20dc9ef8002dc132600c1008138d18bb277.zip
add isKind/asKind methods for ResObject
-rw-r--r--swig/ResTraits.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/swig/ResTraits.i b/swig/ResTraits.i
index bdd4f2e..60613ec 100644
--- a/swig/ResTraits.i
+++ b/swig/ResTraits.i
@@ -49,9 +49,11 @@ namespace zypp
%template(X##_Ptr) ::zypp::intrusive_ptr<X>;
bool isKind##X( const zypp::Resolvable::constPtr & p );
+ bool isKind##X( const zypp::ResObject::constPtr & p );
bool isKind##X( const zypp::PoolItem & p );
X##_constPtr asKind##X( const zypp::Resolvable::constPtr & p );
+ X##_constPtr asKind##X( const zypp::ResObject::constPtr & p );
X##_constPtr asKind##X( const zypp::PoolItem & p );
}
@@ -61,10 +63,14 @@ namespace zypp
{
inline bool isKind##X( const zypp::Resolvable::constPtr & p )
{ return isKind<X>( p ); }
+ inline bool isKind##X( const zypp::ResObject::constPtr & p )
+ { return isKind<X>( p ); }
inline bool isKind##X( const zypp::PoolItem & p )
{ return isKind<X>( p.resolvable() ); }
inline X::constPtr asKind##X( const zypp::Resolvable::constPtr & p )
{ return asKind<X>( p ); }
+ inline X::constPtr asKind##X( const zypp::ResObject::constPtr & p )
+ { return asKind<X>( p ); }
inline X::constPtr asKind##X( const zypp::PoolItem & p )
{ return asKind<X>( p.resolvable() ); }
}