|
Packit |
a7d494 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
|
|
Packit |
a7d494 |
/* gtksourcebufferoutputstream.h
|
|
Packit |
a7d494 |
* This file is part of GtkSourceView
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* Copyright (C) 2010 - Ignacio Casal Quinteiro
|
|
Packit |
a7d494 |
* Copyright (C) 2014 - Sébastien Wilmet <swilmet@gnome.org>
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* GtkSourceView is free software; you can redistribute it and/or
|
|
Packit |
a7d494 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
a7d494 |
* License as published by the Free Software Foundation; either
|
|
Packit |
a7d494 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* GtkSourceView is distributed in the hope that it will be useful,
|
|
Packit |
a7d494 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a7d494 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
a7d494 |
* Lesser General Public License for more details.
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
a7d494 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
a7d494 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
a7d494 |
*/
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#ifndef GTK_SOURCE_BUFFER_OUTPUT_STREAM_H
|
|
Packit |
a7d494 |
#define GTK_SOURCE_BUFFER_OUTPUT_STREAM_H
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#include <gtk/gtk.h>
|
|
Packit |
a7d494 |
#include "gtksourcetypes.h"
|
|
Packit |
a7d494 |
#include "gtksourcetypes-private.h"
|
|
Packit |
a7d494 |
#include "gtksourcebuffer.h"
|
|
Packit |
a7d494 |
#include "gtksourcefile.h"
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
G_BEGIN_DECLS
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#define GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM (gtk_source_buffer_output_stream_get_type ())
|
|
Packit |
a7d494 |
#define GTK_SOURCE_BUFFER_OUTPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM, GtkSourceBufferOutputStream))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_BUFFER_OUTPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM, GtkSourceBufferOutputStreamClass))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_IS_BUFFER_OUTPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_IS_BUFFER_OUTPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_BUFFER_OUTPUT_STREAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_BUFFER_OUTPUT_STREAM, GtkSourceBufferOutputStreamClass))
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
typedef struct _GtkSourceBufferOutputStreamClass GtkSourceBufferOutputStreamClass;
|
|
Packit |
a7d494 |
typedef struct _GtkSourceBufferOutputStreamPrivate GtkSourceBufferOutputStreamPrivate;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
struct _GtkSourceBufferOutputStream
|
|
Packit |
a7d494 |
{
|
|
Packit |
a7d494 |
GOutputStream parent;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GtkSourceBufferOutputStreamPrivate *priv;
|
|
Packit |
a7d494 |
};
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
struct _GtkSourceBufferOutputStreamClass
|
|
Packit |
a7d494 |
{
|
|
Packit |
a7d494 |
GOutputStreamClass parent_class;
|
|
Packit |
a7d494 |
};
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_INTERNAL
|
|
Packit |
a7d494 |
GType gtk_source_buffer_output_stream_get_type (void) G_GNUC_CONST;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_INTERNAL
|
|
Packit |
a7d494 |
GtkSourceBufferOutputStream
|
|
Packit |
a7d494 |
*gtk_source_buffer_output_stream_new (GtkSourceBuffer *buffer,
|
|
Packit |
a7d494 |
GSList *candidate_encodings,
|
|
Packit |
a7d494 |
gboolean remove_trailing_newline);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_INTERNAL
|
|
Packit |
a7d494 |
GtkSourceNewlineType gtk_source_buffer_output_stream_detect_newline_type
|
|
Packit |
a7d494 |
(GtkSourceBufferOutputStream *stream);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_INTERNAL
|
|
Packit |
a7d494 |
const GtkSourceEncoding *gtk_source_buffer_output_stream_get_guessed (GtkSourceBufferOutputStream *stream);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_INTERNAL
|
|
Packit |
a7d494 |
guint gtk_source_buffer_output_stream_get_num_fallbacks
|
|
Packit |
a7d494 |
(GtkSourceBufferOutputStream *stream);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
G_END_DECLS
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#endif /* GTK_SOURCE_BUFFER_OUTPUT_STREAM_H */
|