1 /*
2  * ggit-submodule-update-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 #ifndef __GGIT_SUBMODULE_UPDATE_OPTIONS_H__
22 #define __GGIT_SUBMODULE_UPDATE_OPTIONS_H__
23 
24 #include <glib-object.h>
25 #include <git2.h>
26 
27 #include "ggit-types.h"
28 #include "ggit-checkout-options.h"
29 
30 G_BEGIN_DECLS
31 
32 #define GGIT_TYPE_SUBMODULE_UPDATE_OPTIONS (ggit_submodule_update_options_get_type ())
33 G_DECLARE_DERIVABLE_TYPE (GgitSubmoduleUpdateOptions, ggit_submodule_update_options, GGIT, SUBMODULE_UPDATE_OPTIONS, GObject)
34 
35 struct _GgitSubmoduleUpdateOptionsClass
36 {
37 	GObjectClass parent_class;
38 };
39 
40 const git_submodule_update_options *
41                       _ggit_submodule_update_options_get_submodule_update_options (GgitSubmoduleUpdateOptions  *options);
42 
43 GgitSubmoduleUpdateOptions  *ggit_submodule_update_options_new             (void);
44 
45 GgitCheckoutOptions   *ggit_submodule_update_options_get_checkout_options  (GgitSubmoduleUpdateOptions *options);
46 void                   ggit_submodule_update_options_set_checkout_options  (GgitSubmoduleUpdateOptions *options,
47                                                                             GgitCheckoutOptions        *checkout_options);
48 
49 GgitFetchOptions      *ggit_submodule_update_options_get_fetch_options     (GgitSubmoduleUpdateOptions *options);
50 void                   ggit_submodule_update_options_set_fetch_options     (GgitSubmoduleUpdateOptions *options,
51                                                                             GgitFetchOptions           *fetch_options);
52 
53 G_END_DECLS
54 
55 #endif /* __GGIT_SUBMODULE_UPDATE_OPTIONS_H__ */
56 
57 /* ex:set ts=8 noet: */
58