Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
0ed67c1c
Commit
0ed67c1c
authored
Nov 27, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API updates for odb_backend.h
parent
2e76b5fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
include/git2/odb_backend.h
+10
-7
No files found.
include/git2/odb_backend.h
View file @
0ed67c1c
...
...
@@ -79,8 +79,8 @@ struct git_odb_backend {
int
(
*
foreach
)(
struct
git_odb_backend
*
,
int
(
*
cb
)(
git_oid
*
oid
,
void
*
data
),
void
*
data
);
int
(
*
cb
)(
git_oid
*
oid
,
void
*
payload
),
void
*
payload
);
int
(
*
writepack
)(
struct
git_odb_writepack
**
,
...
...
@@ -101,7 +101,7 @@ enum {
/** A stream to read/write from a backend */
struct
git_odb_stream
{
struct
git_odb_backend
*
backend
;
int
mode
;
unsigned
int
mode
;
int
(
*
read
)(
struct
git_odb_stream
*
stream
,
char
*
buffer
,
size_t
len
);
int
(
*
write
)(
struct
git_odb_stream
*
stream
,
const
char
*
buffer
,
size_t
len
);
...
...
@@ -118,12 +118,15 @@ struct git_odb_writepack {
void
(
*
free
)(
struct
git_odb_writepack
*
writepack
);
};
GIT_EXTERN
(
int
)
git_odb_backend_pack
(
git_odb_backend
**
backend_out
,
const
char
*
objects_dir
);
GIT_EXTERN
(
int
)
git_odb_backend_loose
(
git_odb_backend
**
backend_out
,
const
char
*
objects_dir
,
int
compression_level
,
int
do_fsync
);
GIT_EXTERN
(
int
)
git_odb_backend_one_pack
(
git_odb_backend
**
backend_out
,
const
char
*
index_file
);
GIT_EXTERN
(
void
*
)
git_odb_backend_malloc
(
git_odb_backend
*
backend
,
size_t
len
);
/**
* Constructors for in-box ODB backends.
*/
GIT_EXTERN
(
int
)
git_odb_backend_pack
(
git_odb_backend
**
out
,
const
char
*
objects_dir
);
GIT_EXTERN
(
int
)
git_odb_backend_loose
(
git_odb_backend
**
out
,
const
char
*
objects_dir
,
int
compression_level
,
int
do_fsync
);
GIT_EXTERN
(
int
)
git_odb_backend_one_pack
(
git_odb_backend
**
out
,
const
char
*
index_file
);
GIT_END_DECL
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment