summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-utils.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-01-15 12:46:11 +0000
committerRichard Hughes <richard@hughsie.com>2015-01-15 13:09:07 +0000
commit5542d872a3f95e330395bf674595e7c0593105f6 (patch)
tree98138493fd8312f1384274b5bd493cf53a113cd7 /libappstream-glib/as-utils.h
parent0f336ac127ec3c4d9b8ff2f9283ee5a75f301934 (diff)
downloadappstream-glib-5542d872a3f95e330395bf674595e7c0593105f6.tar.gz
Check if the search entries are valid before searching
We want to do this once when preparing the search action, rather than in as_app_search_matches_all() which would be much slower. This prevents returning hundreds of entries for: $ appstream-util search action and adventure ... and also provides some new API that gnome-software can use.
Diffstat (limited to 'libappstream-glib/as-utils.h')
-rw-r--r--libappstream-glib/as-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-utils.h b/libappstream-glib/as-utils.h
index e81d65a..5e6910f 100644
--- a/libappstream-glib/as-utils.h
+++ b/libappstream-glib/as-utils.h
@@ -105,6 +105,8 @@ gboolean as_utils_install_filename (AsUtilsLocation location,
const gchar *origin,
const gchar *destdir,
GError **error);
+gboolean as_utils_search_token_valid (const gchar *token);
+gchar **as_utils_search_tokenize (const gchar *search);
G_END_DECLS