NetSurf
fb_search.c
Go to the documentation of this file.
1/*
2 * Copyright 2009 Mark Benjamin <netsurf-browser.org.MarkBenjamin@dfgh.net>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include <stdbool.h>
20#include <string.h>
21
22#include "utils/log.h"
23
24/* callback functions for search implementation */
25static void gui_search_set_status(bool found, void *p);
26static void gui_search_set_hourglass(bool active, void *p);
27static void gui_search_add_recent(const char *string, void *p);
28static void gui_search_set_forward_state(bool active, void *p);
29static void gui_search_set_back_state(bool active, void *p);
30
31/**
32* Change the displayed search status.
33* \param found search pattern matched in text
34* \param p the pointer sent to search_verify_new() / search_create_context()
35*/
36void gui_search_set_status(bool found, void *p)
37{
38}
39
40/**
41* display hourglass while searching
42* \param active start/stop indicator
43* \param p the pointer sent to search_verify_new() / search_create_context()
44*/
45void gui_search_set_hourglass(bool active, void *p)
46{
47}
48
49/**
50* add search string to recent searches list
51* \param string search pattern
52* \param p the pointer sent to search_verify_new() / search_create_context()
53*/
54void gui_search_add_recent(const char *string, void *p)
55{
56}
57
58/**
59* activate search forwards button in gui
60* \param active activate/inactivate
61* \param p the pointer sent to search_verify_new() / search_create_context()
62*/
63void gui_search_set_forward_state(bool active, void *p)
64{
65}
66
67/**
68* activate search forwards button in gui
69* \param active activate/inactivate
70* \param p the pointer sent to search_verify_new() / search_create_context()
71*/
72void gui_search_set_back_state(bool active, void *p)
73{
74}
static void gui_search_set_back_state(bool active, void *p)
activate search forwards button in gui
Definition: fb_search.c:72
static void gui_search_set_status(bool found, void *p)
Change the displayed search status.
Definition: fb_search.c:36
static void gui_search_set_forward_state(bool active, void *p)
activate search forwards button in gui
Definition: fb_search.c:63
static void gui_search_add_recent(const char *string, void *p)
add search string to recent searches list
Definition: fb_search.c:54
static void gui_search_set_hourglass(bool active, void *p)
display hourglass while searching
Definition: fb_search.c:45
Interface to utility string handling.