summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60bc35a)
raw | patch | inline | side by side (parent: 60bc35a)
author | Florian Forster <ff@octo.it> | |
Mon, 12 Jul 2010 07:59:11 +0000 (09:59 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 12 Jul 2010 07:59:11 +0000 (09:59 +0200) |
src/utils_search.c | patch | blob | history |
diff --git a/src/utils_search.c b/src/utils_search.c
index 648c2ec4694dd75aca5c0544580488989255bd2b..6ed9c172c6e9a566fc0135c003be8a2191d96830 100644 (file)
--- a/src/utils_search.c
+++ b/src/utils_search.c
str_array_t *terms;
};
+/*
+ * Private functions
+ */
static char *read_quoted_string (const char **buffer) /* {{{ */
{
const char *ptr = *buffer;
return (ret);
} /* }}} char *next_token */
-static int store_token_field (char **field, const char *token)
+static int store_token_field (char **field, const char *token) /* {{{ */
{
char *copy;
return (0);
} /* }}} int store_token_field */
-static int store_token (search_info_t *si, const char *token)
+static int store_token (search_info_t *si, const char *token) /* {{{ */
{
if (strncmp ("host:", token, strlen ("host:")) == 0)
return (store_token_field (&si->host, token + strlen ("host:")));
return (array_append (si->terms, token));
} /* }}} int store_token */
+/*
+ * Public functions
+ */
search_info_t *search_parse (const char *search) /* {{{ */
{
const char *ptr;