1 /*
2  * ggit-fetch-options.h
3  * This file is part of libgit2-glib
4  *
5  * Copyright (C) 2015 - 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 
22 #ifndef __GGIT_FETCH_OPTIONS_H__
23 #define __GGIT_FETCH_OPTIONS_H__
24 
25 #include <glib-object.h>
26 #include <git2.h>
27 #include <libgit2-glib/ggit-remote-callbacks.h>
28 
29 G_BEGIN_DECLS
30 
31 #define GGIT_TYPE_FETCH_OPTIONS       (ggit_fetch_options_get_type ())
32 #define GGIT_FETCH_OPTIONS(obj)       ((GgitFetchOptions *)obj)
33 
34 GType                      ggit_fetch_options_get_type            (void) G_GNUC_CONST;
35 
36 const git_fetch_options  *_ggit_fetch_options_get_fetch_options   (GgitFetchOptions        *fetch_options);
37 
38 GgitFetchOptions          *ggit_fetch_options_copy                (GgitFetchOptions        *fetch_options);
39 void                       ggit_fetch_options_free                (GgitFetchOptions        *fetch_options);
40 
41 GgitFetchOptions          *ggit_fetch_options_new                 (void);
42 
43 GgitRemoteCallbacks       *ggit_fetch_options_get_remote_callbacks (GgitFetchOptions       *options);
44 void                       ggit_fetch_options_set_remote_callbacks (GgitFetchOptions       *options,
45                                                                     GgitRemoteCallbacks    *callbacks);
46 
47 GgitRemoteDownloadTagsType ggit_fetch_options_get_download_tags    (GgitFetchOptions           *options);
48 void                       ggit_fetch_options_set_download_tags    (GgitFetchOptions           *options,
49                                                                     GgitRemoteDownloadTagsType  download_tags);
50 
51 G_END_DECLS
52 
53 #endif /* __GGIT_FETCH_OPTIONS_H__ */
54 
55 /* ex:set ts=8 noet: */
56