ref: refs/heads/master
commit 0eacdad48ac1af50c3b1cc1c548fbf10401d5b7b
Author: Klaus Kämpf
Date: Mon Jun 15 13:34:43 2009 +0200
Provide solutions_count
---
bindings/problem.i | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/bindings/problem.i b/bindings/problem.i
index f13a6ff..1033cd4 100644
--- a/bindings/problem.i
+++ b/bindings/problem.i
@@ -100,6 +100,13 @@ typedef struct _Problem {} Problem;
{ return xsolvable_new( $self->solver->pool, $self->target ); }
/*
+ * Number of available solutions for problem
+ *
+ */
+ int solutions_count()
+ { return solver_solution_count( $self->solver, $self->id ); }
+
+ /*
* An iterator providing possible Solutions to the Problem
*
* call-seq:
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org