summaryrefslogtreecommitdiff
path: root/desktop/global_history.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-07-03 13:48:53 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-07-03 13:48:53 +0100
commit5616221064b7cf503373a00faed854fc83c09a02 (patch)
tree262c55a17e006d682224e64f4db9672a9928aa86 /desktop/global_history.c
parentc256320b082fe7fb7ef0f0e4360fd3965170f7d4 (diff)
downloadnetsurf-5616221064b7cf503373a00faed854fc83c09a02.tar.gz
netsurf-5616221064b7cf503373a00faed854fc83c09a02.tar.bz2
Typedefs for internal treeview and treeview_node structs.
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r--desktop/global_history.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index d3d3391f5..a60cccd82 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -46,12 +46,12 @@ enum global_history_folders {
};
struct global_history_folder {
- struct treeview_node *folder;
+ treeview_node *folder;
struct treeview_field_data data;
};
struct global_history_ctx {
- struct treeview *tree;
+ treeview *tree;
struct treeview_field_desc fields[N_FIELDS];
struct global_history_folder folders[GH_N_FOLDERS];
time_t today;
@@ -64,7 +64,7 @@ struct global_history_entry {
int slot;
nsurl *url;
time_t t;
- struct treeview_node *entry;
+ treeview_node *entry;
struct global_history_entry *next;
struct global_history_entry *prev;
@@ -113,7 +113,7 @@ static nserror global_history_create_dir(enum global_history_folders f)
{
nserror err;
time_t t = gh_ctx.today;
- struct treeview_node *relation = NULL;
+ treeview_node *relation = NULL;
enum treeview_relationship rel = TREE_REL_FIRST_CHILD;
const char *label;
int age;
@@ -200,7 +200,7 @@ static nserror global_history_create_dir(enum global_history_folders f)
* \return NSERROR_OK on success, appropriate error otherwise
*/
static inline nserror global_history_get_parent_treeview_node(
- struct treeview_node **parent, int slot)
+ treeview_node **parent, int slot)
{
int folder_index;
struct global_history_folder *f;
@@ -304,7 +304,7 @@ static nserror global_history_entry_insert(struct global_history_entry *e,
{
nserror err;
- struct treeview_node *parent;
+ treeview_node *parent;
err = global_history_get_parent_treeview_node(&parent, slot);
if (err != NSERROR_OK) {
return err;