aboutsummaryrefslogtreecommitdiff
path: root/cgit.h
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/cgit.h b/cgit.h
index 7d7ece7..653ec28 100644
--- a/cgit.h
+++ b/cgit.h
@@ -101,7 +101,6 @@ struct cgit_repo {
int snapshots;
int enable_blame;
int enable_commit_graph;
- int enable_follow_links;
int enable_log_filecount;
int enable_log_linecount;
int enable_remote_branches;
@@ -121,6 +120,9 @@ struct cgit_repo {
int ignore;
};
+typedef void (*repo_config_fn)(struct cgit_repo *repo, const char *name,
+ const char *value);
+
struct cgit_repolist {
int length;
int count;
@@ -331,8 +333,7 @@ extern const struct cgit_snapshot_format cgit_snapshot_formats[];
extern char *cgit_default_repo_desc;
extern struct cgit_repo *cgit_add_repo(const char *url);
extern struct cgit_repo *cgit_get_repoinfo(const char *url);
-extern void cgit_repo_config(struct cgit_repo *repo, const char *name,
- const char *value);
+extern void cgit_repo_config_cb(const char *name, const char *value);
extern int chk_zero(int result, char *msg);
extern int chk_positive(int result, char *msg);
@@ -345,7 +346,8 @@ extern void strbuf_ensure_end(struct strbuf *sb, char c);
extern void cgit_add_ref(struct reflist *list, struct refinfo *ref);
extern void cgit_free_reflist_inner(struct reflist *list);
-extern int cgit_refs_cb(const struct reference *ref, void *cb_data);
+extern int cgit_refs_cb(const char *refname, const char *referent UNUSED,
+ const struct object_id *oid, int flags, void *cb_data);
extern void cgit_free_commitinfo(struct commitinfo *info);
extern void cgit_free_taginfo(struct taginfo *info);
@@ -393,9 +395,7 @@ extern void cgit_init_filters(void);
extern void cgit_prepare_repo_env(struct cgit_repo * repo);
-extern int read_first_line(const char *path, char **buf, size_t *size);
-
-extern char *strdup_first_line(const char *txt);
+extern int readfile(const char *path, char **buf, size_t *size);
extern char *expand_macros(const char *txt);