diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2008-10-31 18:16:26 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-31 18:30:40 -0700 |
| commit | de2220a48fcf7901432f8093d3223e65f4072ff7 (patch) | |
| tree | 09845e76453ec9527128f73fd5ac7114e9158432 /src/git_odb.h | |
| parent | 4f9339df943c53117a5fc8e86e2f38716ff3a668 (diff) | |
| download | libgit2-de2220a48fcf7901432f8093d3223e65f4072ff7.tar.gz | |
Replace git_result_t with int
This seems to be preferred on the mailing list.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git_odb.h')
| -rw-r--r-- | src/git_odb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/git_odb.h b/src/git_odb.h index 1213764b2..8e0a161f9 100644 --- a/src/git_odb.h +++ b/src/git_odb.h @@ -60,7 +60,7 @@ typedef struct git_odb_t git_odb_t; * @return GIT_SUCCESS if the database opened; otherwise an error * code describing why the open was not possible. */ -GIT_EXTERN(git_result_t) git_odb_open(git_odb_t **out, const char *objects_dir); +GIT_EXTERN(int) git_odb_open(git_odb_t **out, const char *objects_dir); /** * Close an open object database. @@ -101,7 +101,7 @@ typedef struct { * - GIT_SUCCESS if the object was read; * - GIT_ENOTFOUND if the object is not in the database. */ -GIT_EXTERN(git_result_t) git_odb_read(git_sobj_t *out, git_odb_t *db, const git_oid_t *id); +GIT_EXTERN(int) git_odb_read(git_sobj_t *out, git_odb_t *db, const git_oid_t *id); /** * Read a small object from the database using only pack files. @@ -115,7 +115,7 @@ GIT_EXTERN(git_result_t) git_odb_read(git_sobj_t *out, git_odb_t *db, const git_ * - GIT_SUCCESS if the object was read. * - GIT_ENOTFOUND if the object is not in the database. */ -GIT_EXTERN(git_result_t) git_odb__read_packed(git_sobj_t *out, git_odb_t *db, const git_oid_t *id); +GIT_EXTERN(int) git_odb__read_packed(git_sobj_t *out, git_odb_t *db, const git_oid_t *id); /** * Read a small object from the database using only loose object files. @@ -129,7 +129,7 @@ GIT_EXTERN(git_result_t) git_odb__read_packed(git_sobj_t *out, git_odb_t *db, co * - GIT_SUCCESS if the object was read. * - GIT_ENOTFOUND if the object is not in the database. */ -GIT_EXTERN(git_result_t) git_odb__read_loose(git_sobj_t *out, git_odb_t *db, const git_oid_t *id); +GIT_EXTERN(int) git_odb__read_loose(git_sobj_t *out, git_odb_t *db, const git_oid_t *id); /** * Release all memory used by the sobj structure. |
