summaryrefslogtreecommitdiff
path: root/src/bencode.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-08 00:52:56 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-08 00:52:56 +0000
commite1b13312f975f38d3d7437f28299912eff6947e0 (patch)
tree563d1d7937ce87915e2055d9b2f1dae37d2b9b71 /src/bencode.h
parent0a1fa495bd2186c2004fbc0f8977fe52a5f82168 (diff)
fix the performance problems with the torrent add dialog on torrents with many files/dirs. the parent size updates just walks up parents rather than a full foreach, and the inserts try to use the previous update to speed up finding/creating the directories. I'll probably do something similar to the main files treeview.
Diffstat (limited to 'src/bencode.h')
-rw-r--r--src/bencode.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bencode.h b/src/bencode.h
index 71760e0..23fc51a 100644
--- a/src/bencode.h
+++ b/src/bencode.h
@@ -52,13 +52,13 @@ extern "C" {
} val;
} be_node;
- extern gint64 be_str_len(be_node * node);
- extern be_node *be_decode(const char *bencode);
- extern be_node *be_decoden(const char *bencode, gint64 bencode_len);
- extern void be_free(be_node * node);
- extern void be_dump(be_node * node);
- extern be_node *be_dict_find(be_node * node, char *key, int type);
- extern int be_validate_node(be_node * node, int type);
+ gint64 be_str_len(be_node * node);
+ be_node *be_decode(const char *bencode);
+ be_node *be_decoden(const char *bencode, gint64 bencode_len);
+ void be_free(be_node * node);
+ void be_dump(be_node * node);
+ be_node *be_dict_find(be_node * node, char *key, int type);
+ gboolean be_validate_node(be_node * node, gint type);
#ifdef __cplusplus
}