1 /*
2  * ggit-blob-output-stream.h
3  * This file is part of libgit2-glib
4  *
5  * Copyright (C) 2013 - Jesse van den Kieboom
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_BLOB_OUTPUT_STREAM_H__
23 #define __GGIT_BLOB_OUTPUT_STREAM_H__
24 
25 #include <glib-object.h>
26 #include <gio/gio.h>
27 
28 #include "ggit-types.h"
29 
30 G_BEGIN_DECLS
31 
32 #define GGIT_TYPE_BLOB_OUTPUT_STREAM (ggit_blob_output_stream_get_type ())
33 G_DECLARE_DERIVABLE_TYPE (GgitBlobOutputStream, ggit_blob_output_stream, GGIT, BLOB_OUTPUT_STREAM, GOutputStream)
34 
35 /**
36  * GgitBlobOutputStreamClass:
37  * @parent_class: The parent class.
38  *
39  * The class structure for #GgitBlobOutputStreamClass.
40  */
41 struct _GgitBlobOutputStreamClass
42 {
43 	/*< private >*/
44 	GOutputStreamClass parent_class;
45 };
46 
47 GgitBlobOutputStream *_ggit_blob_output_stream_new              (GgitRepository *repository);
48 
49 GgitOId               *ggit_blob_output_stream_get_id           (GgitBlobOutputStream  *stream,
50                                                                  GError               **error);
51 
52 G_END_DECLS
53 
54 #endif /* __GGIT_BLOB_OUTPUT_STREAM_H__ */
55 
56 /* ex:set ts=8 noet: */
57