diff options
author | Philip Kelley <phkelley@hotmail.com> | 2012-08-27 09:59:13 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2012-08-27 09:59:13 -0400 |
commit | c49d328cf433da1bf25a97e3935069308daf7f8d (patch) | |
tree | 70ee0e04e00db781b80994b6edb348968e150a44 /src/odb.c | |
parent | 2b175ca972f2531e5ef46d24abeb831d90033a33 (diff) | |
download | libgit2-c49d328cf433da1bf25a97e3935069308daf7f8d.tar.gz |
Expose a malloc function to 3rd party ODB backends
Diffstat (limited to 'src/odb.c')
-rw-r--r-- | src/odb.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -708,6 +708,11 @@ int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oi return error; } +void * git_odb_backend_malloc(git_odb_backend *backend, size_t len) +{ + return git__malloc(len); +} + int git_odb__error_notfound(const char *message, const git_oid *oid) { if (oid != NULL) { |