diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-08-12 23:40:54 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-08-12 23:40:54 +0200 |
commit | 9c9f4fc11c85d621dc5fdcf46bbcb5b5da9ed73f (patch) | |
tree | b74a41b8df31f0fc88809d1d479742b3f5b3c192 /src/hashtable.h | |
parent | f2408cc2efc1752bb34011a655f6acdab4e9e602 (diff) | |
download | libgit2-9c9f4fc11c85d621dc5fdcf46bbcb5b5da9ed73f.tar.gz |
Add support for manually freeing repo objects
A new method 'git_repository_object_free' allows to manually force the
freeing of a repository object, even though they are still automatically
managed by the repository and don't need to be freed by the user.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/hashtable.h')
-rw-r--r-- | src/hashtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hashtable.h b/src/hashtable.h index 622a260e1..cd390b9e9 100644 --- a/src/hashtable.h +++ b/src/hashtable.h @@ -42,6 +42,7 @@ git_hashtable *git_hashtable_alloc(unsigned int min_size, git_hash_keyeq_ptr key_eq); int git_hashtable_insert(git_hashtable *h, const void *key, void *value); void *git_hashtable_lookup(git_hashtable *h, const void *key); +int git_hashtable_remove(git_hashtable *table, const void *key); void git_hashtable_free(git_hashtable *h); void git_hashtable_clear(git_hashtable *h); |