1 /*
2  * ggit-signature.h
3  * This file is part of libgit2-glib
4  *
5  * Copyright (C) 2011 - Ignacio Casal Quinteiro
6  *
7  * libgit2-glib is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * libgit2-glib is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with libgit2-glib. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GGIT_SIGNATURE_H__
22 #define __GGIT_SIGNATURE_H__
23 
24 #include <libgit2-glib/ggit-native.h>
25 #include <git2.h>
26 #include <libgit2-glib/ggit-types.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GGIT_TYPE_SIGNATURE (ggit_signature_get_type ())
31 G_DECLARE_FINAL_TYPE (GgitSignature, ggit_signature, GGIT, SIGNATURE, GgitNative)
32 
33 GgitSignature        *_ggit_signature_wrap             (const git_signature *signature,
34                                                         const gchar         *encoding,
35                                                         gboolean             owned);
36 
37 GgitSignature        *ggit_signature_new               (const gchar         *name,
38                                                         const gchar         *email,
39                                                         GDateTime           *signature_time,
40                                                         GError             **error);
41 
42 GgitSignature        *ggit_signature_new_now           (const gchar         *name,
43                                                         const gchar         *email,
44                                                         GError             **error);
45 
46 GgitSignature        *ggit_signature_copy              (GgitSignature       *signature);
47 
48 const gchar          *ggit_signature_get_name          (GgitSignature       *signature);
49 
50 const gchar          *ggit_signature_get_email         (GgitSignature       *signature);
51 
52 GDateTime            *ggit_signature_get_time          (GgitSignature       *signature);
53 
54 GTimeZone            *ggit_signature_get_time_zone     (GgitSignature       *signature);
55 
56 G_END_DECLS
57 
58 #endif /* __GGIT_SIGNATURE_H__ */
59 
60 /* ex:set ts=8 noet: */
61