From 1a90dcf64e561b21e0981a7d87d71e349fa37f69 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Wed, 6 Mar 2013 19:07:56 +0100 Subject: use git_note_iterator type instead of non-public git_iterator one --- include/git2/notes.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/git2/notes.h') 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,10 +47,17 @@ 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 * @@ -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); /** -- cgit v1.2.1