2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_refdb_h__
8 #define INCLUDE_refdb_h__
10 #include "git2/refdb.h"
11 #include "repository.h"
16 git_refdb_backend
*backend
;
22 const char *ref_name
);
27 const char *ref_name
);
29 int git_refdb_foreach(
31 unsigned int list_flags
,
32 git_reference_foreach_cb callback
,
35 int git_refdb_foreach_glob(
38 unsigned int list_flags
,
39 git_reference_foreach_cb callback
,
42 int git_refdb_write(git_refdb
*refdb
, const git_reference
*ref
);
44 int git_refdb_delete(git_refdb
*refdb
, const git_reference
*ref
);