26#include <oslib/wimp.h>
119 while (list != NULL && i > 0) {
124 entries[i].data.indirected_text.text =
127 entries[i].data.indirected_text.size =
128 strlen(list->
url) + 1;
138 wimp_MENU_TITLE_INDIRECTED;
185 while (*list != NULL &&
weight < (*list)->weight) {
186 list = &((*list)->next);
232 const char *
url = NULL;
236 data.indirected_text.text;
static uint32_t count(const http_directive *list, lwc_string *key)
@ CONTENT_HTML
content is HTML
@ CONTENT_TEXTPLAIN
content is plain text
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
NetSurf URL handling (interface).
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
struct nsurl nsurl
NetSurf URL object.
Interface to utility string handling.
unsigned int visits
Visit count.
time_t last_visit
Last visit time.
content_type type
Type of resource.
struct url_suggest_item * next
Unified URL information database public interface.
void urldb_iterate_entries(bool(*callback)(struct nsurl *url, const struct url_data *data))
Iterate over all entries in database.
const char * ro_gui_url_suggest_get_selection(wimp_selection *selection)
Process a selection from the URL Suggest menu.
static wimp_MENU(URL_SUGGEST_MAX_URLS)
Initialise the URL suggestion menu.
bool ro_gui_url_suggest_prepare_menu(void)
Builds the URL suggestion menu.
static struct url_suggest_item * suggest_list
static time_t suggest_time
static int suggest_entries
bool ro_gui_url_suggest_get_menu_available(void)
Check if there is a URL suggestion menu available for use.
static bool ro_gui_url_suggest_callback(nsurl *url, const struct url_data *data)
Callback function for urldb_iterate_entries.
URL Suggestion Menu (interface).
wimp_menu * ro_gui_url_suggest_menu
bool ro_gui_url_suggest_init(void)
#define URL_SUGGEST_MAX_URLS