diff options
Diffstat (limited to 'src/git_odb.h')
| -rw-r--r-- | src/git_odb.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/git_odb.h b/src/git_odb.h index dab2ff4ba..ecb100a9c 100644 --- a/src/git_odb.h +++ b/src/git_odb.h @@ -43,14 +43,14 @@ /** * @file git_odb.h * @brief Git object database routines - * @defgroup git_odb Git object database routines + * @defgroup git_odb_t Git object database routines * @ingroup Git * @{ */ GIT_BEGIN_DECL /** An open object database handle. */ -typedef struct git_odb git_odb; +typedef struct git_odb_t git_odb_t; /** * Open an object database for read/write access. @@ -60,14 +60,14 @@ typedef struct git_odb git_odb; * @return GIT_SUCCESS if the database opened; otherwise an error * code describing why the open was not possible. */ -GIT_EXTERN(git_result) git_odb_open(git_odb **out, const char *objects_dir); +GIT_EXTERN(git_result_t) git_odb_open(git_odb_t **out, const char *objects_dir); /** * Close an open object database. * @param db database pointer to close. If NULL no action is taken. * The pointer is set to NULL when the close is completed. */ -GIT_EXTERN(void) git_odb_close(git_odb** db); +GIT_EXTERN(void) git_odb_close(git_odb_t **db); /** Basic type (loose or packed) of any Git object. */ typedef enum { @@ -80,14 +80,14 @@ typedef enum { GIT_OBJ__EXT2 = 5, /**< Reserved for future use. */ GIT_OBJ_OFS_DELTA = 6, /**< A delta, base is given by an offset. */ GIT_OBJ_REF_DELTA = 7, /**< A delta, base is given by object id. */ -} git_otype; +} git_otype_t; /** A small object read from the database. */ typedef struct { - void *data; /**< Raw, decompressed object data. */ - size_t len; /**< Total number of bytes in data. */ - git_otype type; /**< Type of this object. */ -} git_sobj; + void *data; /**< Raw, decompressed object data. */ + size_t len ; /**< Total number of bytes in data. */ + git_otype_t type; /**< Type of this object. */ +} git_sobj_t; /** * Read a small object from the 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) git_odb_read(git_sobj *out, git_odb *db, const git_oid *id); +GIT_EXTERN(git_result_t) 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) git_odb_read(git_sobj *out, git_odb *db, const git_oid *i * - GIT_SUCCESS if the object was read. * - GIT_ENOTFOUND if the object is not in the database. */ -GIT_EXTERN(git_result) git_odb__read_packed(git_sobj *out, git_odb *db, const git_oid *id); +GIT_EXTERN(git_result_t) 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) git_odb__read_packed(git_sobj *out, git_odb *db, const gi * - GIT_SUCCESS if the object was read. * - GIT_ENOTFOUND if the object is not in the database. */ -GIT_EXTERN(git_result) git_odb__read_loose(git_sobj *out, git_odb *db, const git_oid *id); +GIT_EXTERN(git_result_t) 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. @@ -140,7 +140,7 @@ GIT_EXTERN(git_result) git_odb__read_loose(git_sobj *out, git_odb *db, const git * * @param obj object descriptor to free. */ -GIT_EXTERN(void) git_sobj_close(git_sobj *obj); +GIT_EXTERN(void) git_sobj_close(git_sobj_t *obj); /** @} */ GIT_END_DECL |
