Skip to content

Commit 71c4306

Browse files
authored
Merge pull request libgit2#4497 from medranocalvo/export-mempack
odb: export mempack backend
2 parents 45f5840 + d23ce18 commit 71c4306

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/git2/sys/mempack.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "git2/types.h"
1212
#include "git2/oid.h"
1313
#include "git2/odb.h"
14+
#include "git2/buffer.h"
1415

1516
/**
1617
* @file git2/sys/mempack.h
@@ -38,10 +39,10 @@ GIT_BEGIN_DECL
3839
* Subsequent reads will also be served from the in-memory store
3940
* to ensure consistency, until the memory store is dumped.
4041
*
41-
* @param out Poiter where to store the ODB backend
42+
* @param out Pointer where to store the ODB backend
4243
* @return 0 on success; error code otherwise
4344
*/
44-
int git_mempack_new(git_odb_backend **out);
45+
GIT_EXTERN(int) git_mempack_new(git_odb_backend **out);
4546

4647
/**
4748
* Dump all the queued in-memory writes to a packfile.
@@ -64,7 +65,7 @@ int git_mempack_new(git_odb_backend **out);
6465
* @param backend The mempack backend
6566
* @return 0 on success; error code otherwise
6667
*/
67-
int git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *backend);
68+
GIT_EXTERN(int) git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *backend);
6869

6970
/**
7071
* Reset the memory packer by clearing all the queued objects.
@@ -78,7 +79,7 @@ int git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *backe
7879
*
7980
* @param backend The mempack backend
8081
*/
81-
void git_mempack_reset(git_odb_backend *backend);
82+
GIT_EXTERN(void) git_mempack_reset(git_odb_backend *backend);
8283

8384
GIT_END_DECL
8485

src/odb_mempack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "git2/object.h"
1111
#include "git2/sys/odb_backend.h"
12+
#include "git2/sys/mempack.h"
1213
#include "fileops.h"
1314
#include "hash.h"
1415
#include "odb.h"

0 commit comments

Comments
 (0)