NetSurf
search.cpp
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#define __STDBOOL_H__ 1
20//#include <stdbool.h>
21#include <string.h>
22
23extern "C" {
24#include "utils/log.h"
25}
26/* callback functions for search implementation */
27static void gui_search_set_status(bool found, void *p);
28static void gui_search_set_hourglass(bool active, void *p);
29static void gui_search_add_recent(const char *string, void *p);
30static void gui_search_set_forward_state(bool active, void *p);
31static void gui_search_set_back_state(bool active, void *p);
32
33/**
34 * Change the displayed search status.
35 * \param found search pattern matched in text
36 * \param p the pointer sent to search_verify_new() / search_create_context()
37 */
38void gui_search_set_status(bool found, void *p)
39{
40}
41
42/**
43 * display hourglass while searching
44 * \param active start/stop indicator
45 * \param p the pointer sent to search_verify_new() / search_create_context()
46 */
47void gui_search_set_hourglass(bool active, void *p)
48{
49}
50
51/**
52 * add search string to recent searches list
53 * \param string search pattern
54 * \param p the pointer sent to search_verify_new() / search_create_context()
55 */
56void gui_search_add_recent(const char *string, void *p)
57{
58}
59
60/**
61 * activate search forwards button in gui
62 * \param active activate/inactivate
63 * \param p the pointer sent to search_verify_new() / search_create_context()
64 */
65void gui_search_set_forward_state(bool active, void *p)
66{
67}
68
69/**
70 * activate search forwards button in gui
71 * \param active activate/inactivate
72 * \param p the pointer sent to search_verify_new() / search_create_context()
73 */
74void gui_search_set_back_state(bool active, void *p)
75{
76}
static void gui_search_set_back_state(bool active, void *p)
activate search forwards button in gui
Definition: search.cpp:74
static void gui_search_set_status(bool found, void *p)
Change the displayed search status.
Definition: search.cpp:38
static void gui_search_set_forward_state(bool active, void *p)
activate search forwards button in gui
Definition: search.cpp:65
static void gui_search_add_recent(const char *string, void *p)
add search string to recent searches list
Definition: search.cpp:56
static void gui_search_set_hourglass(bool active, void *p)
display hourglass while searching
Definition: search.cpp:47
Interface to utility string handling.