Author: dmacvicar
Date: Wed Feb 20 10:26:33 2008
New Revision: 8826
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8826&view=rev
Log:
- still does not compile but at least
swig does not hang on the python part
Modified:
trunk/libzypp-bindings/swig/ResPool.i
trunk/libzypp-bindings/swig/ZYppFactory.i
trunk/libzypp-bindings/swig/python/CMakeLists.txt
trunk/libzypp-bindings/swig/python/python.i
Modified: trunk/libzypp-bindings/swig/ResPool.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/ResPool.i?rev=8826&r1=8825&r2=8826&view=diff
==============================================================================
--- trunk/libzypp-bindings/swig/ResPool.i (original)
+++ trunk/libzypp-bindings/swig/ResPool.i Wed Feb 20 10:26:33 2008
@@ -1,4 +1,4 @@
-
+namespace zypp {
%apply unsigned { ResPool::size_type };
%nodefault ResPool;
@@ -7,6 +7,8 @@
%ignore ResPool::byNameBegin;
%ignore ResPool::byNameEnd;
+
+
class ResPool
{
friend std::ostream & operator<<( std::ostream & str, const ResPool & obj );
@@ -41,16 +43,10 @@
/** */
size_type size() const;
- /** \name Iterate through all PoolItems (all kinds). */
- //@{
- /** */
- const_iterator begin() const
- { return make_filter_begin( pool::ByPoolItem(), store() ); }
/** */
- const_iterator end() const
- { return make_filter_end( pool::ByPoolItem(), store() ); }
- //@}
-
+ const_iterator begin() const;
+ const_iterator end() const;
+
public:
/** Return the corresponding \ref PoolItem.
* Pool and sat pool should be in sync. Returns an empty
@@ -366,3 +362,5 @@
}
#endif
+
+}
Modified: trunk/libzypp-bindings/swig/ZYppFactory.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/ZYppFactory.i?rev=8826&r1=8825&r2=8826&view=diff
==============================================================================
--- trunk/libzypp-bindings/swig/ZYppFactory.i (original)
+++ trunk/libzypp-bindings/swig/ZYppFactory.i Wed Feb 20 10:26:33 2008
@@ -1,4 +1,7 @@
+namespace zypp
+{
%template(ZYpp_Ptr) intrusive_ptr<ZYpp>;
+}
%include