From 2bd5998c9cab0afdea2aba00ce35a70656ba9fda Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Tue, 27 Nov 2012 14:47:39 -0800 Subject: Remove git_note_data structure --- include/git2/notes.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'include/git2/notes.h') diff --git a/include/git2/notes.h b/include/git2/notes.h index 765ee5ddd..ae66975cd 100644 --- a/include/git2/notes.h +++ b/include/git2/notes.h @@ -18,21 +18,16 @@ */ GIT_BEGIN_DECL -/** - * Basic components of a note - * - * - Oid of the blob containing the message - * - Oid of the git object being annotated - */ -typedef struct { - git_oid blob_oid; - git_oid annotated_object_oid; -} git_note_data; - /** * Callback for git_note_foreach. + * + * Receives: + * - blob_id: Oid of the blob containing the message + * - annotated_object_id: Oid of the git object being annotated + * - payload: Payload data passed to `git_note_foreach` */ -typedef int (*git_note_foreach_cb)(git_note_data *note_data, void *payload); +typedef int (*git_note_foreach_cb)( + const git_oid *blob_id, const git_oid *annotated_object_id, void *payload); /** * Read the note for an object @@ -150,8 +145,7 @@ GIT_EXTERN(int) git_note_foreach( git_repository *repo, const char *notes_ref, git_note_foreach_cb note_cb, - void *payload -); + void *payload); /** @} */ GIT_END_DECL -- cgit v1.2.1