summaryrefslogtreecommitdiff
path: root/include/git2/notes.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-27 14:47:39 -0800
committerRussell Belfer <rb@github.com>2012-11-27 14:47:39 -0800
commit2bd5998c9cab0afdea2aba00ce35a70656ba9fda (patch)
tree64564d82a5fe3f6cbdc331efe6c5eaaf0f6e6e4c /include/git2/notes.h
parent336d1275ca53e7acc0b1b28986513a3061260a22 (diff)
downloadlibgit2-2bd5998c9cab0afdea2aba00ce35a70656ba9fda.tar.gz
Remove git_note_data structure
Diffstat (limited to 'include/git2/notes.h')
-rw-r--r--include/git2/notes.h22
1 files changed, 8 insertions, 14 deletions
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
@@ -19,20 +19,15 @@
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