diff options
| author | Russell Belfer <rb@github.com> | 2013-04-19 17:17:44 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-04-21 11:57:21 -0700 |
| commit | 4dcd87801972e1b880afa9cd0998842bae7af5b5 (patch) | |
| tree | 9309689dad171921b5d91372ee78f264c79bbe3d /include/git2 | |
| parent | 9233b3de4ea264a8ae846c784acc70c505022d8b (diff) | |
| download | libgit2-4dcd87801972e1b880afa9cd0998842bae7af5b5.tar.gz | |
Move refdb_backend to include/git2/sys
This moves most of the refdb stuff over to the include/git2/sys
directory, with some minor shifts in function organization.
While I was making the necessary updates, I also removed the
trailing whitespace in a few files that I modified just because I
was there and it was bugging me.
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/refdb.h | 14 | ||||
| -rw-r--r-- | include/git2/sys/refdb_backend.h (renamed from include/git2/refdb_backend.h) | 18 |
2 files changed, 15 insertions, 17 deletions
diff --git a/include/git2/refdb.h b/include/git2/refdb.h index 0e3ec5eaf..9278b1116 100644 --- a/include/git2/refdb.h +++ b/include/git2/refdb.h @@ -81,20 +81,6 @@ GIT_EXTERN(int) git_refdb_compress(git_refdb *refdb); */ GIT_EXTERN(void) git_refdb_free(git_refdb *refdb); -/** - * Sets the custom backend to an existing reference DB - * - * Read <refdb_backends.h> for more information. - * - * @param refdb database to add the backend to - * @param backend pointer to a git_refdb_backend instance - * @param priority Value for ordering the backends queue - * @return 0 on success; error code otherwise - */ -GIT_EXTERN(int) git_refdb_set_backend( - git_refdb *refdb, - git_refdb_backend *backend); - /** @} */ GIT_END_DECL diff --git a/include/git2/refdb_backend.h b/include/git2/sys/refdb_backend.h index 20eb6a9dd..dcdf7bcb8 100644 --- a/include/git2/refdb_backend.h +++ b/include/git2/sys/refdb_backend.h @@ -7,9 +7,9 @@ #ifndef INCLUDE_git_refdb_backend_h__ #define INCLUDE_git_refdb_backend_h__ -#include "common.h" -#include "types.h" -#include "oid.h" +#include "git2/common.h" +#include "git2/types.h" +#include "git2/oid.h" /** * @file git2/refdb_backend.h @@ -103,6 +103,18 @@ GIT_EXTERN(int) git_refdb_backend_fs( struct git_refdb_backend **backend_out, git_repository *repo); +/** + * Sets the custom backend to an existing reference DB + * + * @param refdb database to add the backend to + * @param backend pointer to a git_refdb_backend instance + * @param priority Value for ordering the backends queue + * @return 0 on success; error code otherwise + */ +GIT_EXTERN(int) git_refdb_set_backend( + git_refdb *refdb, + git_refdb_backend *backend); + GIT_END_DECL #endif |
