mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 05:50:21 +00:00
Hide git_odb's internal structure from applcation code
This way only structures we ask the caller to allocate on their call stack or which we want to allow them to use members from are shown in the API docs. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
111d5ccf0b
commit
1cd20d3af0
@ -35,6 +35,17 @@
|
||||
|
||||
#include "git_odb.h"
|
||||
|
||||
struct git_odb {
|
||||
/** Path to the "objects" directory. */
|
||||
const char *path;
|
||||
|
||||
/** Alternate databases to search. */
|
||||
struct git_odb **alternates;
|
||||
|
||||
/** Number of alternates available. */
|
||||
unsigned n_alternates;
|
||||
};
|
||||
|
||||
git_result git_odb_read(git_sobj *out, git_odb *db, const git_oid *id)
|
||||
{
|
||||
if (!git_odb__read_packed(out, db, id))
|
||||
|
@ -50,16 +50,7 @@
|
||||
GIT_BEGIN_DECL
|
||||
|
||||
/** An open object database handle. */
|
||||
typedef struct git_odb {
|
||||
/** Path to the "objects" directory. */
|
||||
const char *path;
|
||||
|
||||
/** Alternate databases to search. */
|
||||
struct git_odb **alternates;
|
||||
|
||||
/** Number of alternates available. */
|
||||
unsigned n_alternates;
|
||||
} git_odb;
|
||||
typedef struct git_odb git_odb;
|
||||
|
||||
/**
|
||||
* Open an object database for read/write access.
|
||||
|
Loading…
Reference in New Issue
Block a user