summaryrefslogtreecommitdiff
path: root/include/git2/notes.h
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-03-06 19:07:56 +0100
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-03-06 19:07:56 +0100
commit1a90dcf64e561b21e0981a7d87d71e349fa37f69 (patch)
tree24526328de5b985b98bc36e4d54c55bd2579ebf5 /include/git2/notes.h
parent6edb427b7615207142e10a228164d6a019045126 (diff)
downloadlibgit2-1a90dcf64e561b21e0981a7d87d71e349fa37f69.tar.gz
use git_note_iterator type instead of non-public git_iterator one
Diffstat (limited to 'include/git2/notes.h')
-rw-r--r--include/git2/notes.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/git2/notes.h b/include/git2/notes.h
index 466f0a894..be69c26ec 100644
--- a/include/git2/notes.h
+++ b/include/git2/notes.h
@@ -32,7 +32,7 @@ typedef int (*git_note_foreach_cb)(
/**
* note iterator
*/
-typedef struct git_iterator git_iterator;
+typedef struct git_iterator git_note_iterator;
/**
* Creates a new iterator for notes
@@ -47,11 +47,18 @@ typedef struct git_iterator git_iterator;
* @return 0 or an error code
*/
GIT_EXTERN(int) git_note_iterator_new(
- git_iterator **out,
+ git_note_iterator **out,
git_repository *repo,
const char *notes_ref);
/**
+ * Frees an git_note_iterator
+ *
+ * @param it pointer to the iterator
+ */
+GIT_EXTERN(void) git_note_iterator_free(git_note_iterator *it);
+
+/**
* Next iteration step for note iteration
*
* The notes must not be freed manually by the user.
@@ -65,7 +72,7 @@ GIT_EXTERN(int) git_note_iterator_new(
GIT_EXTERN(int) git_note_next(
git_oid* note_id,
git_oid* annotated_id,
- git_iterator *it);
+ git_note_iterator *it);
/**