|
Packit |
116408 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
|
Packit |
116408 |
/*
|
|
Packit |
116408 |
* Copyright (C) 2018 Sébastien Wilmet <swilmet@gnome.org>
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
116408 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
116408 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
116408 |
* License, or (at your option) any later version.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
116408 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
116408 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
116408 |
* General Public License for more details.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
116408 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
116408 |
*/
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#ifndef DH_SEARCH_CONTEXT_H
|
|
Packit |
116408 |
#define DH_SEARCH_CONTEXT_H
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#include <glib.h>
|
|
Packit |
116408 |
#include "dh-book.h"
|
|
Packit |
116408 |
#include "dh-link.h"
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_BEGIN_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
typedef struct _DhSearchContext DhSearchContext;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
DhSearchContext * _dh_search_context_new (const gchar *search_string);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
void _dh_search_context_free (DhSearchContext *search);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
const gchar * _dh_search_context_get_book_id (DhSearchContext *search);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
const gchar * _dh_search_context_get_page_id (DhSearchContext *search);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
GStrv _dh_search_context_get_keywords (DhSearchContext *search);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
gboolean _dh_search_context_get_case_sensitive (DhSearchContext *search);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
gboolean _dh_search_context_match_book (DhSearchContext *search,
|
|
Packit |
116408 |
DhBook *book);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
gboolean _dh_search_context_match_link (DhSearchContext *search,
|
|
Packit |
116408 |
DhLink *link,
|
|
Packit |
116408 |
gboolean prefix);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
gboolean _dh_search_context_is_exact_link (DhSearchContext *search,
|
|
Packit |
116408 |
DhLink *link);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_END_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#endif /* DH_SEARCH_CONTEXT_H */
|