Lines Matching refs:search_state
168 struct search_state *search_state; member
352 struct search_state *global_search_state;
916 if (req->handle->search_state && in reply_handle()
2992 struct search_state { struct
3000 search_state_decref(struct search_state *const state) { in search_state_decref() argument
3013 static struct search_state *
3015 struct search_state *state = (struct search_state *) mm_malloc(sizeof(struct search_state)); in search_state_new()
3017 memset(state, 0, sizeof(struct search_state)); in search_state_new()
3123 search_make_new(const struct search_state *const state, int n, const char *const base_name) { in search_make_new()
3181 handle->search_state = base->global_search_state; in search_request_new()
3205 if (handle->search_state) { in search_try_next()
3209 if (handle->search_index >= handle->search_state->num_domains) { in search_try_next()
3212 if (string_num_dots(handle->search_origname) < handle->search_state->ndots) { in search_try_next()
3224 new_name = search_make_new(handle->search_state, handle->search_index, handle->search_origname); in search_try_next()
3245 if (handle->search_state) { in search_request_finished()
3246 search_state_decref(handle->search_state); in search_request_finished()
3247 handle->search_state = NULL; in search_request_finished()