summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index e96311f..75e919b 100644
--- a/cgit.h
+++ b/cgit.h
@@ -100,2 +100,17 @@ struct taginfo {
100 100
101struct refinfo {
102 const char *refname;
103 struct object *object;
104 union {
105 struct taginfo *tag;
106 struct commitinfo *commit;
107 };
108};
109
110struct reflist {
111 struct refinfo **refs;
112 int alloc;
113 int count;
114};
115
101extern const char *cgit_version; 116extern const char *cgit_version;
@@ -164,2 +179,6 @@ extern char *trim_end(const char *str, char c);
164 179
180extern void cgit_add_ref(struct reflist *list, struct refinfo *ref);
181extern int cgit_refs_cb(const char *refname, const unsigned char *sha1,
182 int flags, void *cb_data);
183
165extern void *cgit_free_commitinfo(struct commitinfo *info); 184extern void *cgit_free_commitinfo(struct commitinfo *info);