* mu-query: take a char** instead of a gslist

This commit is contained in:
Dirk-Jan C. Binnema 2009-12-11 22:06:16 +02:00
parent 7dc44abd9d
commit 3a7d6dfd34
2 changed files with 5 additions and 5 deletions

View File

@ -157,12 +157,12 @@ print_rows (MuQueryXapian *xapian, const gchar *query, MuConfigOptions *opts)
static gboolean
do_output (MuQueryXapian *xapian, GSList *args, MuConfigOptions* opts)
do_output (MuQueryXapian *xapian, MuConfigOptions* opts, gchar **params)
{
gchar *query;
gboolean retval = TRUE;
query = mu_query_xapian_combine (args, FALSE);
query = mu_query_xapian_combine (params, FALSE);
/* if xquery is set, we print the xapian query instead of the
* output; this is for debugging purposes */
@ -179,7 +179,7 @@ do_output (MuQueryXapian *xapian, GSList *args, MuConfigOptions* opts)
MuResult
mu_query_run (MuConfigOptions *opts, GSList *args)
mu_query_run (MuConfigOptions *opts, gchar **params)
{
MuQueryXapian *xapian;
MuResult rv;
@ -192,7 +192,7 @@ mu_query_run (MuConfigOptions *opts, GSList *args)
if (!xapian)
return MU_ERROR;
rv = do_output (xapian, args, opts) ? 0 : 1;
rv = do_output (xapian, opts, params) ? 0 : 1;
mu_query_xapian_destroy (xapian);

View File

@ -3,7 +3,7 @@
#include "mu-config.h"
MuResult mu_query_run (MuConfigOptions *opts, GSList *args);
MuResult mu_query_run (MuConfigOptions *opts, gchar **params);
#endif /*__MU_QUERY_H__*/