Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <sat-solver> master : Provide solutions_count
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Mon, 15 Jun 2009 13:34:43 +0200
  • Message-id: <E1MGAUQ-0005UA-4h@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 0eacdad48ac1af50c3b1cc1c548fbf10401d5b7b
Author: Klaus Kämpf <kkaempf@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages