Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2012-11-13 05:22:49 +0400
committerEdward Thomson <ethomson@edwardthomson.com>2012-11-13 20:23:05 +0400
commit603bee07918b50051d7bb45722932fc409b38a67 (patch)
tree99951bc2c5470bc429d42eb9eb6151b2de6b08be /src/hash.h
parentd6fb09240913c9756de5f4a2462062008ebac252 (diff)
Remove git_hash_ctx_new - callers now _ctx_init()
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hash.h b/src/hash.h
index 2a9e19837..e3f1f3f66 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -12,6 +12,9 @@
typedef struct git_hash_prov git_hash_prov;
typedef struct git_hash_ctx git_hash_ctx;
+int git_hash_ctx_init(git_hash_ctx *ctx);
+void git_hash_ctx_cleanup(git_hash_ctx *ctx);
+
#if defined(OPENSSL_SHA1)
# include "hash/hash_openssl.h"
#elif defined(WIN32_SHA1)
@@ -27,9 +30,6 @@ typedef struct {
size_t len;
} git_buf_vec;
-git_hash_ctx *git_hash_ctx_new(void);
-void git_hash_ctx_free(git_hash_ctx *ctx);
-
int git_hash_init(git_hash_ctx *c);
int git_hash_update(git_hash_ctx *c, const void *data, size_t len);
int git_hash_final(git_oid *out, git_hash_ctx *c);