diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 15:50:32 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 15:50:32 +0100 |
| commit | ea14b4942c5f260b8a647bec52b85d376f12066a (patch) | |
| tree | 30bafd021d0551f93c3d21362486ef955639f646 /src/search.h | |
| parent | 1594c96a327ae418b193d19d8d6c80b89cc74430 (diff) | |
separate code
Diffstat (limited to 'src/search.h')
| -rw-r--r-- | src/search.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/search.h b/src/search.h index ebb98f3..51ae649 100644 --- a/src/search.h +++ b/src/search.h @@ -29,6 +29,7 @@ typedef struct t_search_result int completed_match_threads; int done_finding_files; int file_list_read_cursor; + bool cancel_search; // search query utf8_int8_t *directory_to_search; @@ -55,10 +56,14 @@ typedef struct t_text_match char *line_info; } text_match; +extern search_result* current_search_result; + array get_filters(char *pattern); int filter_matches(array *filters, char *string, char **matched_filter); int string_match(char *first, char *second); search_result *create_empty_search_result(); bool string_contains_ex(char *text_to_search, char *text_to_find, array *text_matches); +void ts_start_search(utf8_int8_t* path, utf8_int8_t* filter, utf8_int8_t* query); + #endif
\ No newline at end of file |
