diff options
Diffstat (limited to 'git.h')
-rw-r--r-- | git.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -12,6 +12,7 @@ typedef struct file file; typedef struct comment comment; typedef struct git_branch git_branch; typedef struct git_repo git_repo; +typedef int (parse_callback)(void **ret, void *ctx, char *buf); struct file { char *name; /* Name of file. */ @@ -53,6 +54,7 @@ struct pull_request { extern void cleanup_git(git_repo **repos); extern void cleanup_pull_request(pull_request *pr); extern git_repo **init_git(config *cfg); +extern int parse_key_value_file(void *ret, void *ctx, const keyword **keywords, char *buf, const char *delm, parse_callback *parse_cb); extern pull_request *get_pull_request(index_t *idx, const char *root, const char *repo); extern int add_comment(comment *comment, const char *pr_root); extern int create_pull_request_dir(pull_request *pr, index_t *idx, const char *root, const char *repo); |