X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_search.c;h=aa157e6df6307d925bd8a173535de22cec9f67dc;hb=593828eb6109b2f0ee43f090d64a252f0ff92774;hp=e2a89f30a305896d2aec86620a11e01ac7ab8867;hpb=50e4d660056be2bd4fd96b4cc1c980df5064202d;p=collection4.git diff --git a/src/utils_search.c b/src/utils_search.c index e2a89f3..aa157e6 100644 --- a/src/utils_search.c +++ b/src/utils_search.c @@ -234,6 +234,19 @@ void search_destroy (search_info_t *si) /* {{{ */ array_destroy (si->terms); } /* }}} void search_destroy */ +_Bool search_has_selector (search_info_t *si) /* {{{ */ +{ + if (si == NULL) + return (0); + + if ((si->host != NULL) + || (si->plugin != NULL) || (si->plugin_instance != NULL) + || (si->type != NULL) || (si->type_instance != NULL)) + return (1); + + return (0); +} /* }}} _Bool search_has_selector */ + graph_ident_t *search_to_ident (search_info_t *si) /* {{{ */ { if (si == NULL)