signature.h 790 Bytes
Newer Older
Vicent Marti committed
1
/*
Edward Thomson committed
2
 * Copyright (C) the libgit2 contributors. All rights reserved.
Vicent Marti committed
3 4 5 6
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
7 8 9
#ifndef INCLUDE_signature_h__
#define INCLUDE_signature_h__

10 11
#include "common.h"

12 13 14 15 16
#include "git2/common.h"
#include "git2/signature.h"
#include "repository.h"
#include <time.h>

17
int git_signature__parse(git_signature *sig, const char **buffer_out, const char *buffer_end, const char *header, char ender);
18
void git_signature__writebuf(git_buf *buf, const char *header, const git_signature *sig);
19
bool git_signature__equal(const git_signature *one, const git_signature *two);
20

21 22
int git_signature__pdup(git_signature **dest, const git_signature *source, git_pool *pool);

23
#endif