summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
Diffstat (limited to 'swig')
-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() ); }
}