1 /*
2  * Copyright (C) 2009,2010 Red Hat, Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Red Hat Author(s): Behdad Esfahbod
19  */
20 
21 #ifndef novtestream_h_included
22 #define novtestream_h_included
23 
24 #include <glib-object.h>
25 #include <gio/gio.h>
26 
27 G_BEGIN_DECLS
28 
29 typedef struct _VteStream VteStream;
30 
31 void _vte_stream_reset (VteStream *stream, gsize offset);
32 gboolean _vte_stream_read (VteStream *stream, gsize offset, char *data, gsize len);
33 void _vte_stream_append (VteStream *stream, const char *data, gsize len);
34 void _vte_stream_truncate (VteStream *stream, gsize offset);
35 void _vte_stream_advance_tail (VteStream *stream, gsize offset);
36 gsize _vte_stream_tail (VteStream *stream);
37 gsize _vte_stream_head (VteStream *stream);
38 
39 /* Various streams */
40 
41 VteStream *_vte_file_stream_new (void);
42 
43 G_END_DECLS
44 
45 #endif
46